forked from ProjectQ-Framework/ProjectQ
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
executable file
·75 lines (62 loc) · 1.68 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
# ==============================================================================
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
# update: true
packages:
- gcc-9
- g++-9
- build-essential
- python3
- python3-pip
homebrew:
update: false
# ==============================================================================
env:
global:
- OMP_NUM_THREADS=1
- CC=gcc-9
- CXX=g++-9
os: linux
language: python
python:
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9
jobs:
fast_finish: true
# Limit the number of builds to use less credits on Travis-CI
# include:
# - os: osx
# osx_image: xcode12.2
# language: shell
# name: "Mac OS Python Homebrew"
# env: CC=clang CXX=clang++
# before_install:
# - clang++ --version
# - os: windows
# name: "Windows Python 3.8"
# language: shell
# before_install:
# - unset CC CXX
# - choco install python3 --version 3.8.8
# - ln -s /c/Python38/python.exe /c/Python38/python3.exe
# - python3 -m pip install --upgrade pip
# env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
# ==============================================================================
# Installation and testing
install:
- env
- python3 -m pip install -U pip setuptools wheel
- python3 -m pip install -U pybind11 dormouse revkit flaky pytest-cov coveralls boto3
- python3 -m pip install -r requirements.txt
- python3 -m pip install -ve .
before_script:
- "echo 'backend: Agg' > matplotlibrc"
script:
- python3 -m pytest projectq --cov projectq -p no:warnings
after_success:
- coveralls
# ==============================================================================