Skip to content

Commit

Permalink
Hopefully correct condition syntax
Browse files Browse the repository at this point in the history
Former-commit-id: 4a13d9e
  • Loading branch information
brandur committed Sep 2, 2018
1 parent 9dca300 commit 562b362
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ script:

# deploy development version that includes drafts
- TARGET_DIR=./public-dev DRAFTS=true make build
- echo "$TRAVIS_BRANCH"
- if [[ "$TRAVIS_BRANCH" -eq "master" ]]; then TARGET_DIR=./public-dev S3_BUCKET=brandur.org-dev make deploy; fi
- |
if [[ "$TRAVIS_BRANCH" -eq "master" ]]; then
TARGET_DIR=./public-dev S3_BUCKET=brandur.org-dev make deploy
fi
# then deploy production
- if [[ "$TRAVIS_BRANCH" -eq "master" ]]; then TARGET_DIR=./public S3_BUCKET=brandur.org make deploy; fi
- |
if [[ "$TRAVIS_BRANCH" -eq "master" ]]; then
TARGET_DIR=./public S3_BUCKET=brandur.org make deploy
fi
- set -e

Expand Down

0 comments on commit 562b362

Please sign in to comment.