-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (72 loc) · 2.07 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
language: cpp
dist: bionic
sudo: required
# Travis CI VM OSs -> 2 OSs
os:
# - linux
- osx
osx_image:
- xcode12.2
# Travis CI build matrix components -> 2 compilers
compiler:
# - gcc
- clang
# Travis CI environmental variables -> 2 env variables
env:
- TRAVIS_BUILD_TYPE=Debug
# - TRAVIS_BUILD_TYPE=Release
# Total builds: 8 = 2 [OSs] * 2 [comps] * 2 [env vars]
# You can install packages and sources for Linux using the APT addon, without
# running `apt-get` commands in your `before_install` script. You can also
# install macOS packages that are not included in the default OS X environment
# using Homebrew addon.
# See: https://docs.travis-ci.com/user/installing-dependencies/#installing-packages-with-the-apt-addon
# See: https://docs.travis-ci.com/user/installing-dependencies/#installing-packages-on-os-x
addons:
homebrew:
taps: nlohmann/json
packages:
- boost
- nlohmann-json
- armadillo
- fmt
- mlpack
- ensmallen
- spdlog
- lua
update: true
apt:
packages:
- libopenblas-dev
- liblapack-dev
- libarpack2-dev
- libsuperlu-dev
- libboost-all-dev
- libarmadillo-dev
- nlohmann-json-dev
update: true
before_install:
# Configure Homebrew
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/bin:$PATH"; fi
# Print some more system information after installing all build tools
- echo "-------------------- BEGIN SYSTEM INFORMATION --------------------"
- uname -a
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then lsb_release -a; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then system_profiler SPSoftwareDataType; fi
- env
- which cmake
- cmake --version
- which $CC
- $CC --version
- which $CXX
- $CXX --version
- echo "-------------------- END SYSTEM INFORMATION --------------------"
before_script:
# Run CMake
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ..
# - cmake -DBUILD_TESTING:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} ..
script:
- cmake --build .
# - make test