Moves awscli install to after script success

This commit is contained in:
Aaron Louie 2020-04-03 10:14:28 -04:00
parent f501fc47fb
commit 13542d78c7
1 changed files with 5 additions and 2 deletions

View File

@ -17,8 +17,7 @@ before_install:
- psql -c 'create database crc_test;' -U postgres
install:
- pip install pipenv pytest coverage awscli
- export PATH=$PATH:$HOME/.local/bin
- pip install pipenv pytest coverage
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
@ -28,6 +27,10 @@ script:
- coverage xml -i
- sonar-scanner
after_success:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
deploy:
provider: script
script: bash deploy.sh