Move travis-scripts to be build-server only (#1215)

* Move travis-scripts to be build-server only
* Fix up conditional logic
This commit is contained in:
Pat Cavit 2016-08-04 11:24:32 -07:00 committed by GitHub
parent 85ecd3545f
commit 56fbda9670
2 changed files with 11 additions and 3 deletions

View file

@ -8,11 +8,20 @@ cache:
directories:
- node_modules
# Custom install step so the travis scripts don't need to be in package.json
install:
- npm install
- npm install @alrra/travis-scripts@^3.0.1
# After a successful build create bundles & commit back to the repo
after_success:
- |
# Only want to do this on commits to $BRANCH
[ "$TRAVIS_PULL_REQUEST" == "true" -o "$TRAVIS_BRANCH" != "$BRANCH" ] && (echo Artifacts only built on $BRANCH; exit 0)
# Only want to commit things on commits to $BRANCH
if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] || [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
echo "Artifacts only built on $BRANCH"
exit 0
fi
# Set up SSH environment
$(npm bin)/set-up-ssh --key "$encrypted_8b86e0359d64_key" \

View file

@ -16,7 +16,6 @@
"cover": "istanbul cover --print both ospec/bin/ospec"
},
"devDependencies": {
"@alrra/travis-scripts": "^3.0.1",
"eslint": "^2.10.2",
"istanbul": "^0.4.3"
},