Moves awscli install to install step

This commit is contained in:
Aaron Louie 2020-04-03 16:43:25 -04:00
parent a322801c91
commit e866c2c4bb
2 changed files with 2 additions and 5 deletions

View File

@ -17,7 +17,8 @@ before_install:
- psql -c 'create database crc_test;' -U postgres
install:
- pip install pipenv pytest coverage
- pip install pipenv pytest coverage awscli
- export PATH=$PATH:$HOME/.local/bin;
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)

View File

@ -1,9 +1,5 @@
#!/bin/bash
# Install AWS CLI
pip install --user awscli;
export PATH=$PATH:$HOME/.local/bin;
# Build and push Docker image to Docker Hub
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build --no-cache -t sartography/cr-connect-backend:latest . || exit 1;