Skip to content

Commit

Permalink
Update travis configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
MTB90 committed Dec 2, 2019
1 parent 4d5659a commit 59b7f34
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: required

dist: xenial
dist: bionic

language: python
python:
Expand All @@ -18,15 +18,15 @@ stages:
- name: build
if: branch = develop AND type = push
- name: deploy
if: branch = master AND type = push
if: branch = develop AND type = push

jobs:
include:
- stage: test
before_install:
install:
- make travis-env
- make travis-infra
- export PATH="~/bin:$PATH"
install: make travis-env
services:
- docker
script:
Expand All @@ -36,10 +36,9 @@ jobs:
- codecov

- stage: build
before_install:
install:
- make travis-infra
- export PATH="~/bin:$PATH"
install: make travis-env
services:
- docker
script:
Expand All @@ -51,12 +50,11 @@ jobs:
before_install:
- make travis-infra
- export PATH="~/bin:$PATH"
install: make travis-env
install:
- make travis-aws
services:
- docker
script:
- make aws-push-image
- make thumbnail-lambda
- make rekognition-lambda
- make aws-update-service
- make aws-update-lambda
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ app-docker-build:
docker-compose -f docker-compose.yml build --no-cache

########################### AWS DEPLOYMENT Lambda ##########################
aws-update-lambda: thumbnail-lambda rekognition-lambda
@cd inrastructure/production/eu-west-1/prod/serverless; \
aws-update-lambda:
@cd infrastructure/production/eu-west-1/prod/serverless; \
terragrunt get; \
terragrunt apply -auto-approve

thumbnail-lambda: _copy-source-package
Expand Down Expand Up @@ -96,12 +97,12 @@ travis-aws:
travis-infra:
curl -sLo /tmp/terraform.zip https://releases.hashicorp.com/terraform/0.12.16/terraform_0.12.16_linux_amd64.zip
unzip /tmp/terraform.zip -d .
chmod 755 terraform
mv terraform ~/bin
chmod +x ~/bin/terraform

curl https://github.com/gruntwork-io/terragrunt/releases/download/v0.20.4/terragrunt_linux_amd64 -o terragrunt
chmod 755 terragrunt
wget https://github.com/gruntwork-io/terragrunt/releases/download/v0.21.6/terragrunt_linux_amd64 -O terragrunt
mv terragrunt ~/bin
chmod +x ~/bin/terragrunt

############################## TESTING #############################
test: localstack-env
Expand Down

0 comments on commit 59b7f34

Please sign in to comment.