forked from tangent-opensource/python-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (49 loc) · 1.66 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
56
57
58
# Copyright (c) 2019 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.
language: python
# We need to test on multiple distros, since python 2.6 is not supported in xenial
# and 3.7 is not supported in trusty. For now just use trusty to test 2.6, and use
# the more modern xenial for 2.7 and 3.7.
matrix:
include:
# Use trusty dist for python 2.6, since the built-in xenial distro (default)
# does not support Python 2.6
# See https://docs.travis-ci.com/user/reference/xenial/#python-support
# Python 2.6, Server #1
- dist: trusty
python: "2.6"
# flake8 does not support python 2.6, so only run it on 2.7+
env:
- RUN_FLAKE=false
# Test python 2.7 and 3.7 on Xenial.
# Python 2.7, Server #1
- dist: xenial
python: "2.7"
env:
- RUN_FLAKE=true
# Python 3.7, Server #1
- dist: xenial
python: "3.7"
env:
- RUN_FLAKE=true
# command to install dependencies
install:
- pip install -r tests/ci_requirements.txt
- pip install . -U
before_script:
- cp ./tests/example_config ./tests/config
# Run flake and then run tests
script:
- if [ -n "$RUN_FLAKE" = true ]; then flake8; fi
- cd tests && coverage run -m nose --no-path-adjustment
after_success: coveralls
notifications:
email:
- api@shotgunsoftware.com