-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
33 lines (33 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
sudo: false
language: python
python: 3.6
cache: pip
fast_finish: true
branches:
only:
- master
install:
- wget https://github.com/Sage-Bionetworks/infra-utils/archive/master.zip -O /tmp/infra-utils.zip
- unzip -j -n /tmp/infra-utils.zip -x "infra-utils-master/.gitignore" "infra-utils-master/LICENSE" "infra-utils-master/*.md" "infra-utils-master/aws/*"
- ./setup_aws_cli.sh || travis_terminate 1
- pip install pre-commit sceptre sceptre-ssm-resolver
stages:
- name: validate
- name: deploy
if: branch = master AND type = push
jobs:
include:
- stage: validate
script:
- pre-commit autoupdate
- pre-commit run --all-files
# script:
# - yamllint ./config ./templates
# - ./lint_stack.sh -l ./config/prod || travis_terminate 1
# - cfn-lint ./templates/**/*
- stage: deploy
script:
- travis_wait 30 sceptre launch prod --yes
# script:
# - ./lint_stack.sh -r || travis_terminate 1
# - travis_wait 30 sceptre launch prod --yes