-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 1.56 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
# Use Python
language: python
# Run the test runner using the same version of Python we use.
python: 3.6
# Install the test runner.
install:
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
- unzip awscliv2.zip
- sudo ./aws/install
- pip install tox
# Run each environment separately so we get errors back from all of them.
jobs:
include:
- stage: test
name: "Tests"
env: TOX_ENV=py36
script: tox -e $TOX_ENV
- stage: pep8
name: "Pep8 Check"
env: TOX_ENV=pep8
script: tox -e $TOX_ENV
- stage: deploy
name: "Deploy to CodeArtifact"
script: ./scripts/deploy.sh
stages:
- test
- pep8
- name: deploy
if: branch = master AND NOT type in (pull_request)
# Control the branches that get built.
branches:
only:
- master
# Notify us about build status.
notifications:
slack:
secure: "CHKgj1B8KsG7aTvCrOfZjg5B7QQoZGkz/H8DcPS+ObCPyYZPHmrxmXz+ULY6B/HQ/naWIKIPsI6iunIZURZ+8Gr/hFG+w+kqNCNPpGFC5+phXUnUx+Oq8qPvrue5uJoEQs90ESJyvX+EhEzNwG+hTUVTuLRzRLS9gWrI9Sccpy4vPmT36DWgcK7Pfr3i/oGHj9NymOwJ/YigWNAtkRbpjftq2plxoLrPzCH0fsgJJFv1CRqZyG3NhmLT4B8AUh9KEjvuQoG4GrtEsgmlplqd2iY9XJQzLPp5ZDLGRKfQIMqJxJZy9pXACgZ+FEIN9LuV5ftikr3CokxVfwyH3uLc04o+LfFn9UxRbmwAFUdKsqAbMW/pxoxEeCr4jeUngOrmmXQ/6jYkr7MWVZOfk4xvsp8rN45LJtjUF7QfBVuU7qh6tzGD77oJZv6P83hZxN6FzaXviARSWN6UztepYISZuRQ1Shi1qTiWdJbcw8JKq7zv/eQMmCZjNfN2aSbiirOYlsM3rMO67u9BPCh8iXnLIVLik9/8lwj5ZGBtecZkqspRyndJ1hUaZV+teoidKX3hdAseJ+6h3sK/PSV89xulXNfzgg2MRylkhPJ6z6bLgYE6H259HJm++R27tKCuZZIPzUamFWdB8aqejMh7Bp2TOFmU/tmC5tK2b84D0nxe7GU="