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:
parent
85ecd3545f
commit
56fbda9670
2 changed files with 11 additions and 3 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -8,11 +8,20 @@ cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- 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:
|
after_success:
|
||||||
- |
|
- |
|
||||||
|
|
||||||
# Only want to do this on commits to $BRANCH
|
# Only want to commit things on commits to $BRANCH
|
||||||
[ "$TRAVIS_PULL_REQUEST" == "true" -o "$TRAVIS_BRANCH" != "$BRANCH" ] && (echo Artifacts only built on $BRANCH; exit 0)
|
if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] || [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
|
||||||
|
echo "Artifacts only built on $BRANCH"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Set up SSH environment
|
# Set up SSH environment
|
||||||
$(npm bin)/set-up-ssh --key "$encrypted_8b86e0359d64_key" \
|
$(npm bin)/set-up-ssh --key "$encrypted_8b86e0359d64_key" \
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
"cover": "istanbul cover --print both ospec/bin/ospec"
|
"cover": "istanbul cover --print both ospec/bin/ospec"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@alrra/travis-scripts": "^3.0.1",
|
|
||||||
"eslint": "^2.10.2",
|
"eslint": "^2.10.2",
|
||||||
"istanbul": "^0.4.3"
|
"istanbul": "^0.4.3"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue