forked from aws/serverless-application-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (29 loc) · 665 Bytes
/
.travis.yml
File metadata and controls
37 lines (29 loc) · 665 Bytes
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
# Enable container based builds
sudo: false
language: python
matrix:
include:
- python: 3.6
env:
- TOXENV=py36
- python: 2.7
env:
- TOXENV=py27
install:
# Install the code requirements
- make init
# Install Docs requirements
script:
# Runs unit tests
- tox
# Build docs pages only from master branch
- if [ "$TRAVIS_BRANCH" = "master" ]; then make build-docs; fi
deploy:
# Deploy the docs to Github Pages *only* from master branch
- provider: pages
skip_cleanup: true
local_dir: docs/website/_build/html
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
keep-history: true
on:
branch: master