-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
85 lines (75 loc) · 2.32 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
76
77
78
79
80
81
82
83
84
85
language: c++
branches:
only:
- master
- /^travis-.*/
matrix:
include:
# - name: "Last Ubuntu 19.10 (Eoan Ermine) with GCC"
# os: linux
# dist: bionic
# group: travis_latest
# env: DOCKER="ubuntu:eoan" VARIANT="ubuntu" TOOL="compile" COMPILER_C="gcc" COMPILER_CXX="g++" TRAVIS_DIST_NAME="eoan"
# compiler: gcc
# os: linux
# sudo: required
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - gcc-9
# - g++-9
# - dist: xenial
# compiler: gcc
# os: linux
# sudo: required
# env:
# - TRAVIS_DIST_NAME="xenial"
- dist: bionic
compiler: gcc
os: linux
sudo: required
env:
- TRAVIS_DIST_NAME="bionic"
compiler: gcc
os: linux
sudo: required
addons:
apt:
sources:
- sourceline: "ppa:ubuntu-toolchain-r/test"
- sourceline: "deb http://archive.ubuntu.com/ubuntu cosmic main"
packages:
- -t bionic
- gcc-9
- g++-9
- make/cosmic
before_install:
- sudo apt-get update
- if [[ ( "$TRAVIS_DIST_NAME" == "xenial" ) ]]; then sudo add-apt-repository ppa:fkrull/deadsnakes -y; fi
- if [[ ( "$TRAVIS_DIST_NAME" == "xenial" ) ]]; then sudo apt-get update; fi
- sudo apt-get install -y python3.6
- sudo apt-get install python3-setuptools
- sudo apt-get install -y python3-pip
- sudo python3 -m pip install --upgrade pip
- sudo apt-get install python3-numpy
- sudo apt-get install -y libgsl-dev libcgal-qt5-dev
- mkdir -p build
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
- sudo apt install cmake
- sudo apt-mark hold mysql-server-5.7
- sudo apt upgrade
script:
- sudo python3 install.py build
# Decomment following code if you have enough RAM to test the previously compiled binary+python program
# - sudo python3 run_all.py build
- cd cpp && sudo python3 test.py
after_success:
# remove command since TRAVIS free machines can't execute compiled program. (missing RAM)
# - bash push.sh
# after_failure:
# http://jsteemann.github.io/blog/2014/10/30/getting-core-dumps-of-failed-travisci-builds/
env:
global:
secure: