forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.5 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
sudo: false
language: python
branches:
only:
- master
before_install:
- pip install --upgrade pip setuptools wheel
matrix:
include:
- os: linux
env: NAME=mypy
python: "3.5.2"
install:
- cat dev_tools/conf/pip-list-dev-tools.txt | grep mypy | xargs pip install
script: check/mypy
- os: linux
env: NAME=pylint
python: "3.5.2"
install:
- cat dev_tools/conf/pip-list-dev-tools.txt | grep pylint | xargs pip install
script: check/pylint
- os: linux
env: NAME=pytest-and-incremental-coverage
python: "3.5.2"
install:
- pip install -r requirements.txt
- pip install -r cirq/contrib/contrib-requirements.txt
- pip install -r dev_tools/conf/pip-list-dev-tools.txt
script: check/pytest-and-incremental-coverage master
- os: linux
env: NAME=pytest (without contrib)
python: "3.6"
install:
- pip install -r requirements.txt
- pip install -r dev_tools/conf/pip-list-dev-tools.txt
script: check/pytest --ignore=cirq/contrib
- os: linux
env: NAME=pytest2
python: "2.7"
install:
- pip install -r dev_tools/python2.7-requirements.txt
- pip install -r dev_tools/conf/pip-list-python2.7-test-tools.txt
- pip install -r cirq/contrib/contrib-requirements.txt
- curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
- unzip protoc-3.5.1-linux-x86_64.zip -d protoc3.5
- PATH=$(pwd)/protoc3.5/bin:${PATH}
script: check/pytest2