forked from quantumlib/OpenFermion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (46 loc) · 1.25 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
sudo: false
language: python
matrix:
include:
- os: linux
python: "2.7"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=2.7
- os: linux
python: "3.4"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.4
- os: linux
python: "3.5"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.5
- os: linux
python: "3.6"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.6
before_install:
- pip$PY install --upgrade pip setuptools wheel
install:
- if [ "${PYTHON:0:1}" = "3" ]; then export PY=3; fi
- pip$PY install pytest
- pip$PY install pytest-cov
- pip$PY install coveralls
- pip$PY install sphinx
- pip$PY install sphinx_rtd_theme
- pip$PY install -e .
script: sphinx-build -nW -b html -d docs/_build/doctrees/ docs/ docs/_build/html
script: export OMP_NUM_THREADS=1 && pytest src/openfermion --cov src/openfermion
after_success:
- coveralls