Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #85 from spences10/dev/81/amend-ci-deployment
Browse files Browse the repository at this point in the history
add deploy:
  • Loading branch information
spences10 authored Jan 13, 2018
2 parents 58919ab + f095398 commit 5bccfa5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,20 @@ script:
- npm run deploy

after_script:
- if [ "$TRAVIS_BRANCH" = "development" ]; then npm run alias:dev; fi
- if [ "$TRAVIS_BRANCH" = "master" ]; then npm run alias:prod; fi
# - if [ "$TRAVIS_BRANCH" = "development" ]; then ; fi
# - if [ "$TRAVIS_BRANCH" = "master" ]; then npm run alias:prod; fi

deploy:
# deploy develop to the staging environment
- provider: script
script: npm run alias:dev
on:
branch: develop
# deploy master to production
- provider: script
script: npm run alias:prod
on:
branch: master

env:
global:
Expand Down

0 comments on commit 5bccfa5

Please sign in to comment.