-
Notifications
You must be signed in to change notification settings - Fork 47
/
.travis.yml
52 lines (45 loc) · 1.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
os:
- linux
sudo: required
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- cmake
language: generic
python: "3.7"
before_install:
- sudo apt-get update
- sudo apt-get install python3-pip
- sudo pip3 install --upgrade pip
- sudo pip3 install setuptools
- sudo pip3 install pybind11
- sudo pip3 install scipy
install:
- wget https://cmake.org/files/v3.12/cmake-3.12.1-Linux-x86_64.tar.gz -O cmake.tar.gz
- tar xvf cmake.tar.gz
- mv cmake-3.12.1-Linux-x86_64 cmake
script:
- sudo ln -s /usr/bin/gcc-5 /usr/local/bin/gcc
- sudo ln -s /usr/bin/g++-5 /usr/local/bin/g++
- export CC=/usr/bin/gcc-5
- export CXX=/usr/bin/g++-5
- mkdir build
- cd build
- ../cmake/bin/cmake ..
- make
- cd bin
- ./graphit_test
- cd ..
- python --version
- python3 --version
- python3 python_tests/test.py
- python3 python_tests/test_with_schedules.py
- python2 python_tests/test.py
- python2 python_tests/test_with_schedules.py
- export PYTHONPATH=.
- python3 python_tests/pybind_test.py