forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.21 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
dist: trusty
sudo: off
language: python
services:
- docker
install:
- pip install pylint==1.9.2 flake8 requests wheel==0.30.0 -q
jobs:
include:
- stage: precheck
env: PURPOSE='SourceStatic'
script: ./scripts/ci/test_static.sh
python: 3.6
- stage: precheck
env: PURPOSE='IndexVerify'
script: python ./scripts/ci/test_index.py -v
python: 3.6
- stage: verify
env: PURPOSE='SourceTests'
script: ./scripts/ci/test_source.sh
python: 2.7
- stage: verify
env: PURPOSE='SourceTests'
script: ./scripts/ci/test_source.sh
python: 3.6
- stage: verify
env: PURPOSE='IndexRefDocVerify'
script: ./scripts/ci/test_index_ref_doc.sh
python: 3.6
- stage: publish
python: 3.6
script: docker run --rm -e TRAVIS_BUILD_ID=$TRAVIS_BUILD_ID -e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG -e TRAVIS_COMMIT=$TRAVIS_COMMIT -e GH_TOKEN=$GH_TOKEN -e DOC_REPO_SLUG='Azure/azure-docs-cli-python' -v $PWD:/repo derekbekoe/az-avail-ext-doc-sync:0.1.2
env: PURPOSE='SyncAvailableExtensionsDoc'
if: repo = Azure/azure-cli-extensions and branch = master and type = cron
fast_finish: true
allow_failures:
- env: PURPOSE='SourceTests'