forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
138 lines (138 loc) · 4.71 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
sudo: false
language: python
cache:
directories:
- ".benchmarks"
branches:
only:
- master
- /^v\d+\.\d+\.\d+-dev$/
before_install:
- pip install --upgrade pip setuptools wheel
stages:
- quick_test
- test
- name: deploy
if: type = push AND branch = master
matrix:
include:
- stage: quick_test
os: linux
env: NAME=misc
python: '3.6'
install: skip
script: check/misc
- stage: quick_test
os: linux
env: NAME=pytest-changed-files
python: '3.6'
install:
- dev_tools/conf/pip-install-minimal-for-pytest-changed-files.sh
script: check/pytest-changed-files
- stage: quick_test
os: linux
env: NAME=format
python: '3.6'
install:
- cat dev_tools/conf/pip-list-dev-tools.txt | grep yapf | xargs pip install
script: check/format-incremental
- stage: quick_test
os: linux
env: NAME=mypy
python: '3.6'
install:
- cat dev_tools/conf/pip-list-dev-tools.txt | grep mypy | xargs pip install
script: check/mypy
- stage: test
os: windows
env: NAME=pytest (Windows)
language: sh
python: '3.7.3'
before_install:
- choco install python --version 3.7.3
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
- python -m pip install --upgrade wheel
install:
- python -m pip install -r requirements.txt
- python -m pip install -r cirq/contrib/contrib-requirements.txt
- python -m pip install -r dev_tools/conf/pip-list-dev-tools.txt
script: check/pytest --benchmark-skip
- stage: test
os: linux
env: NAME=pytest-and-incremental-coverage
python: '3.6'
install:
- python -m pip install -r requirements.txt
- python -m pip install -r cirq/contrib/contrib-requirements.txt
- python -m pip install -r dev_tools/conf/pip-list-dev-tools.txt
script: check/pytest-and-incremental-coverage master --actually-quiet
- stage: test
os: linux
env: NAME=build-docs
python: '3.7'
install:
- python -m pip install -r requirements.txt
- python -m pip install -r cirq/contrib/contrib-requirements.txt
- python -m pip install -r dev_tools/conf/pip-list-dev-tools.txt
- sudo apt-get install pandoc
script: dev_tools/build-docs.sh
- stage: test
os: osx
env: NAME=pytest (macOS)
python: '3.7'
language: generic
install:
- python3.7 -m venv venv
- source venv/bin/activate
- python -m pip install -r requirements.txt
- python -m pip install -r cirq/contrib/contrib-requirements.txt
- python -m pip install -r dev_tools/conf/pip-list-dev-tools.txt
script: check/pytest --benchmark-skip
- stage: test
os: linux
env: NAME=pytest (without contrib)
python: '3.7'
install:
- python -m pip install -r requirements.txt
- python -m pip install -r dev_tools/conf/pip-list-dev-tools.txt
script: check/pytest --ignore=cirq/contrib --benchmark-skip --actually-quiet
- stage: test
os: linux
env: NAME=doctest
python: '3.6'
install:
- python -m pip install -r requirements.txt
- python -m pip install -r cirq/contrib/contrib-requirements.txt
script: check/doctest -q
- stage: test
os: linux
env: NAME=pylint
python: '3.6'
install:
- cat dev_tools/conf/pip-list-dev-tools.txt | grep "pylint\|astroid" | grep -v
"#" | xargs pip install
script: check/pylint
- stage: test
os: linux
env: NAME=build-protos
python: '3.6'
install:
- python -m pip install -r dev_tools/conf/pip-list-dev-tools.txt
- wget https://github.com/bazelbuild/bazel/releases/download/0.26.0/bazel_0.26.0-linux-x86_64.deb
- sudo dpkg -i bazel_0.26.0-linux-x86_64.deb
script: check/build-protos
- stage: deploy
os: linux
env: NAME=dev-release
python: '3.7'
script: export CIRQ_UNSTABLE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)
before_deploy:
- echo "Deploying dev version '$CIRQ_UNSTABLE_VERSION'"
deploy:
- provider: pypi
user: quantumlibdev
on:
condition: '"$CIRQ_UNSTABLE_VERSION" == *dev*'
distributions: bdist_wheel
password:
secure: KO3RuwLvjb5/J7akv2v/a9tEIbmErp7El6S+ZfMvDRlx8qpUfav1w4nvSGw6sfn837++2+F2Tb22wbJkjefpFMzg9mOdhFGwtOpiHSOnYlY2mnxVN9XdQnMS7F+8IMFas4J3EhqrlsZxoqyMy122S3pjtE/d6YSG+3YzmCu3rLsFl4EV6I5U8MgWJY8LDFqMIxuxgmEkJfPe5z9Sqqwtneelj39jobg4q1uZc0JD3rkI0hj/uhBvBoTTLQjPiZk3ZIkgkMmPVB8tDGK9eXqVuDK7U1ZoDWvTKNebZ94g46YuKVNY6tEJpgpacti6mMalva6wX8zYpWOrY0PPo34e5d/kfwkttnrMk+sPXJnvn5eM7tEWxF+PHz4ejcLEYpehgdbWksHaUVdPog7UrYXnertHDY42ukxF17JlU9rlf60IXJVmeYHTfB1p8V7Yfllgmfa49yGDnR68Y3iIR9NtT26ZoJnMAkrxvlTgz6poBbTKj+Gyr0pkTHLzniEo3D/C8xeVcD30yZPlXxCojcM4s2dM2h5IiQU//ubptP/TE0idG2AJiooEfGUsXZ+IbN4Zxvkoa4YzYCvYFlr42ZBnv0H5/xZc4uFK6rLcVtysZqWAj3QjVGIUX3G1sxy8ik+RSQun1Dhzov8v5RVtb6aShDWT6l6paAAEwrQNt0T44yo=