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

Commit

Permalink
Merge pull request #443 from 18F/travis-deploy
Browse files Browse the repository at this point in the history
build on all branches, only deploy on certain and tags
  • Loading branch information
Marco Segreto committed Jul 7, 2016
2 parents 79f1cef + 4de5dbb commit b0a1c7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Expand Up @@ -15,11 +15,6 @@ install:
script:
- npm test
- "./codecheck.sh -u"
branches:
only:
- master
- staging
- deprecated
before_deploy:
- export BUILD_INFO=build::$TRAVIS_BRANCH::$(date -u "+%Y-%m-%d-%H-%M-%S")::$TRAVIS_BUILD_NUMBER::$(deploy/npm-version.sh)
# Extract any encrypted env vars and put them into the manifests/manifest-master.yml
Expand Down Expand Up @@ -47,6 +42,14 @@ deploy:
- provider: script
skip_cleanup: true
script: deploy/travis_deploy.sh
on:
branch:
- master
- staging
- deprecated
- provider: script
skip_cleanup: true
script: deploy/travis_deploy.sh
on:
tags: true
env:
Expand Down
2 changes: 1 addition & 1 deletion deploy/travis_deploy.sh
Expand Up @@ -10,7 +10,7 @@
set -e

CF_PATH="."
if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]
if [[ "$TRAVIS_TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]
then
CF_MANIFEST="manifests/manifest-prod.yml"
CF_SPACE="deck-prod"
Expand Down

0 comments on commit b0a1c7f

Please sign in to comment.