Skip to content

Commit 1b7d817

Browse files
committed
fix travis
1 parent a787b79 commit 1b7d817

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ script:
1919
- echo "do some tests..."
2020

2121
before_deploy:
22-
# Parse branch name and determine an environment to deploy
23-
- export ENV=$(echo "${TRAVIS_BRANCH}" | perl -ne "print $& if /(?<=deploy\/).*/")
24-
# account number to mask
25-
- account_number=$(aws sts get-caller-identity --output text --query 'Account')
2622
# install aws cli
2723
- sudo apt-get -y install python-pip
2824
- sudo pip install awscli
2925
- aws --version
26+
# Parse branch name and determine an environment to deploy
27+
- export ENV=$(echo "${TRAVIS_BRANCH}" | perl -ne "print $& if /(?<=deploy\/).*/")
28+
# account number to mask
29+
- account_number=$(aws sts get-caller-identity --output text --query 'Account')
3030
deploy:
3131
- provider: script
3232
script: ./scripts/deploy.sh ${ENV} | sed -e "s/${account_number}/SECRET/g"

0 commit comments

Comments
 (0)