-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
86 lines (74 loc) · 2.18 KB
/
.travis.yml
File metadata and controls
86 lines (74 loc) · 2.18 KB
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
86
language: cpp python
sudo: required
dist: trusty
python:
- "3.6"
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env: COMPILER=g++-4.8
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env: COMPILER=g++-7
- os: osx
compiler: clang
env: COMPILER=clang++
- os: osx
compiler: clang
env: COMPILER=clang++-5
addons:
apt:
packages:
- libboost-all-dev
- cmake
- ninja-build
sources:
- kalakris-cmake
- george-edison55-precise-backports
before_install:
- |
export CXX="${COMPILER}";
if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
brew update;
brew install ninja;
brew upgrade boost cmake python;
if [[ ${COMPILER} == "clang++-5" ]]; then
brew install llvm@5;
export CXX="clang++";
export PATH="/usr/local/opt/llvm@5/bin:${PATH}";
export LIBS="-L/usr/local/opt/llvm@5/lib";
else
export ENABLE_OPENMP="false";
fi
elif [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
sudo apt-get update;
sudo apt-get install -y autoconf automake libboost-all-dev cmake;
# because Travis is so irrepairably broken, we need to download random ninja binaries
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip;
unzip -q ninja-linux.zip -d tools;
export PATH="${PWD}/tools:${PATH}";
# set up python3 venv for Meson
source ~/virtualenv/python3.6/bin/activate;
fi;
pip3 install meson;
script:
- echo "Testing Autotools"
- autoreconf -vif
- mkdir build-ac && pushd build-ac && ../configure && make clean && make distcheck && popd
- echo "Testing CMake"
- mkdir build-cmake && pushd build-cmake && LDFLAGS="${LIBS}" cmake -DBUILD_TESTING=ON -GNinja .. && ninja -v && ninja -v test && popd
- echo "Testing Meson"
- LDFLAGS="${LIBS}" meson -Dopenmp="${ENABLE_OPENMP:-true}" build-meson && ninja -C build-meson -v && ninja -C build-meson -v test