-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 1.91 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: python
dist: bionic
sudo: false
cache:
pip: true
directories:
- $HOME/.cache/pre-commit
before_install:
- >
pip install --upgrade pip mypy 'attrs==19.2.0'
-r https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-rpdk/master/requirements.txt
install:
- pip install . src/
env:
global:
- AWS_DEFAULT_REGION="us-east-1"
script:
- pre-commit run --all-files
jobs:
include:
- python: "3.6"
- python: "3.7"
- python: "3.8"
- stage: "integ python 3.6"
language: python
python: "3.6"
script:
- ls -la
- DIR=$(mktemp -d)
- cd "$DIR"
- ls -la
- printf "AWS::Foo::Bar\n1\ny" | cfn init -vv
- ls -la
- mypy src/aws_foo_bar/ --strict --implicit-reexport
- stage: "integ python 3.7"
language: python
python: "3.7"
script:
- DIR=$(mktemp -d)
- cd "$DIR"
- ls -la
- printf "AWS::Foo::Bar\n2\ny" | cfn init -vv
- ls -la
- mypy src/aws_foo_bar/ --strict --implicit-reexport
- stage: deploy
python: "3.7"
script: cd $(bash before_deploy.sh)
deploy:
provider: pypi
user: aws-cloudformation-developers
password:
secure: "KDSSnOhDMO3sHi4eeOSrsRcs3be5C1cYBdtnmTMOUz6npf39wsssBM6iJfkSdRdpWCr8k1cKodVhE3fcz+Z0vq33oPSWOvakynMrcRQk5Xe7Fzc53kesDEc562smPMiERtFfse0oO+InzIPjsfbsBzLqKlWWQGMqUxrshPmfexsOwKDo+JzT4lVflz6AGQPI0smXa9gHkAu11ne7mIlrmR7f8+mWgqzLTExIJFqYjNECOrT/gDo3zzySO13h5CXf7AM1i0o5p02b9hZ41blkS2OgBeDMSS9qN6QFPT+Erl6Q6y579/vM+knXlPzWBdbqJ2uWaeBfcZZlP7jNp6TkW1WPu4jPL/VnJ/3Eihy4rMkRBuer5zPHj0KBJZoU4jjZx5ctnsYPSZrH7Xo3CHnk1QNckXb+4GZVgz6EWAMGgRmDzJUWTzzu7Dw5EwFQZwESTETqqd+53Ht9yDeJgzA6OneZ4MsWq0OzjUFiiAKMS8BO/uiQrTv3/pJo75JJCLW8wrwTaBTZt6gTuYl+UNeuogITVCdStiH1ECZZ001Bv7tKDhcD4rVB/lJ/I8qIx9QXdWDiRhqqt1+WUl6tlA6sX2vFrTD2wqw9XNwNpIbHF8IoBRI9Cp5wO4m0CreAD6TYbPwEXKMyU5mCEQAv1zSJVag3hf/lhmAR3T7eLUPId2c="
server: https://test.pypi.org/legacy/
on:
tags: true