-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (38 loc) · 1.03 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
34
35
36
37
38
language: python
python: 3.7
cache: pip
branches:
only:
- master
install:
- pip install pre-commit sceptre
- npm install -g aws-organization-formation
stages:
- name: validate
- name: deploy
if: branch = master AND type = push
jobs:
fast_finish: true
include:
- stage: validate
script:
- pre-commit run --all-files
- stage: deploy
name: "organizations"
script:
- export ACCOUNT="organizations"
- ./setup_aws_cli.sh $ACCOUNT || travis_terminate 1
- org-formation perform-tasks org-formation/organization-tasks.yaml --perform-cleanup --verbose --print-stack
- sceptre launch $ACCOUNT --yes
- stage: deploy
name: "burner"
script:
- export ACCOUNT="burner"
- ./setup_aws_cli.sh $ACCOUNT || travis_terminate 1
- sceptre launch $ACCOUNT --yes
- stage: deploy
name: "sandbox"
script:
- export ACCOUNT="sandbox"
- ./setup_aws_cli.sh $ACCOUNT || travis_terminate 1
- sceptre launch $ACCOUNT --yes