Bump nodejs version to 6+ (#4272)
* let travis build against 3.x * Cleanup dependencies and bump min version to current LTS * Makes npm-git push all branches to -preview * restores releases * Bumps mime to 2.0.3 (requires node 6+) * Bumps express to latest version * Fixes linting issue after upgrade * Use travis-branch for partial releases
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
# From: https://github.com/graphql/graphql-js/blob/master/resources/npm-git.sh
|
||||
|
||||
BUILD_DIR=latest
|
||||
BRANCH="${TRAVIS_BRANCH}"
|
||||
TARGET="latest"
|
||||
if [ "$BRANCH" != "master" ];
|
||||
then
|
||||
TARGET="$BRANCH-preview"
|
||||
fi
|
||||
|
||||
npm run build
|
||||
|
||||
@@ -29,5 +35,5 @@ git init
|
||||
git config user.name "Travis CI"
|
||||
git config user.email "github@fb.com"
|
||||
git add .
|
||||
git commit -m "Deploy master to LATEST branch"
|
||||
git push --force --quiet "https://${GH_TOKEN}@github.com/parse-community/parse-server.git" master:latest
|
||||
git commit -m "Deploy $BRANCH to $TARGET branch"
|
||||
git push --force --quiet "https://${GH_TOKEN}@github.com/parse-community/parse-server.git" master:$TARGET
|
||||
|
||||
Reference in New Issue
Block a user