forked from chunfuchen/qiskit-chemistry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (64 loc) · 2.35 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
# Copyright 2017, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
notifications:
on_success: change
on_failure: always
cache: pip
sudo: false
os: linux
dist: trusty
language: python
python:
- "3.6"
# Install Qiskit Terra from master branch
env: CMAKE_FLAGS="-D CMAKE_CXX_COMPILER=g++-5 -D ENABLE_TARGETS_QA=False -D WHEEL_TAG=-pmanylinux1_x86_64 -D STATIC_LINKING=True"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- liblapack-dev
- libblas-dev
- g++-5
# Install Qiskit Terra from master branch
# Install Qiskit Aqua from master branch
before_install:
# download Qiskit Terra master and unzip it
- wget https://codeload.github.com/Qiskit/qiskit-terra/zip/master -O /tmp/qiskit-terra-master.zip
- unzip /tmp/qiskit-terra-master.zip -d /tmp/
# Install Qiskit Terra dependencies.
- pip install -U -r /tmp/qiskit-terra-master/requirements.txt
- pip install -U -r /tmp/qiskit-terra-master/requirements-dev.txt
# Create the basic cmake structure, setting out/ as the default dir.
- cd /tmp/qiskit-terra-master
- mkdir out && cd out && cmake $CMAKE_FLAGS ..
# Compile the executables
- make
# Install local Qiskit Terra
- pip install -e /tmp/qiskit-terra-master
# back to current repo directory
- cd $TRAVIS_BUILD_DIR
# download Qiskit Aqua master and unzip it
- wget https://codeload.github.com/Qiskit/aqua/zip/master -O /tmp/aqua-master.zip
- unzip /tmp/aqua-master.zip -d /tmp/
# Install Qiskit Aqua dependencies.
- pip install -U -r /tmp/aqua-master/requirements.txt
- pip install -U -r /tmp/aqua-master/requirements-dev.txt
# Install local Qiskit Aqua
- pip install -e /tmp/aqua-master
# download PyQuante master and unzip it
- wget https://codeload.github.com/rpmuller/pyquante2/zip/master -O /tmp/pyquante2-master.zip
- unzip /tmp/pyquante2-master.zip -d /tmp/
# Install pyQuante dependencies.
- pip install -U -r /tmp/pyquante2-master/requirements.txt
# Install local PyQuante
- pip install -e /tmp/pyquante2-master
# Test
install:
- pip install -U -r requirements.txt
- pip install -U -r requirements-dev.txt
- pip install pyscf
script:
- python -m unittest discover -v test