forked from MindQuantum-HiQ/HiQsimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (70 loc) · 1.63 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
sudo: false
addons:
apt:
update: true
packages:
- cmake
- build-essential
- openmpi-bin
- openmpi-doc
- libhwloc-dev
- libopenmpi-dev
- libboost-all-dev
- libgoogle-glog-dev
- python3
- python3-pip
homebrew:
update: true
packages:
- cmake
- llvm
- boost-mpi
- glog
- hwloc
- python
matrix:
include:
- os: linux
dist: xenial
language: python
env:
- CXX=g++
- os: linux
dist: xenial
language: python
env:
- CXX=clang++ LD_LIBRARY_PATH=/usr/local/clang/lib:$LD_LIBRARY_PATH
- os: osx
language: generic
env: CXX=/usr/bin/clang++ CXXFLAGS=-I/usr/local/include
# - os: windows
# before_install:
# - choco install python3
# - ...
fast_finish: true
allow_failures:
- os: osx
language: generic
env: CXX=/usr/bin/clang++ CXXFLAGS=-I/usr/local/include
install:
- pip3 install --upgrade -r requirements.txt
- pip3 install -v -e .
- pip3 freeze
- mkdir -p build
- cd build
- cmake -DBUILD_TESTING=ON -DPYTHON_EXECUTABLE=`which python3` ..
- make -j2 build_all_test
- cd ..
script:
- make -C build test
- python3 examples/BV_algorithm_constant_mpi.py
- python3 examples/exactgrover_mpi.py
- python3 examples/grover_mpi.py
- python3 examples/maximum_search_constant_mpi.py
- python3 examples/phase_estimation_mpi.py
- python3 examples/qecc9_sta.py
- python3 examples/SymMatrixSolver_mpi.py
- python3 examples/teleport_mpi.py
- python3 examples/ToeplitzSimplify_constant.py
- python3 examples/grover_mpi.py
- python3 examples/unknown_num_search_constant_mpi.py