-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (48 loc) · 1.8 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
language: cpp
jobs:
include:
- os: linux
dist: bionic
compiler: gcc
env: LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
before_install:
- |
sudo apt update
sudo apt install build-essential cmake gfortran locales zlib1g-dev liblzma-dev
sudo apt install python3 python3-setuptools python3-pip python3-virtualenv
sudo locale-gen en_US.UTF-8
sudo pip3 install cget
cget install -f requirements.txt
- os: osx
osx_image: xcode11.3
compiler: clang
before_install:
- |
brew install cmake zlib xz python3
brew cask install gfortran
sudo python3 -m pip install cget
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
cget install -f requirements.txt
- os: osx
osx_image: xcode11.4
compiler: clang
before_install:
- |
brew install cmake zlib xz python3
brew cask install gfortran
sudo python3 -m pip install cget
export CPATH=$(xcrun --show-sdk-path)/usr/include
export CFLAGS="${CFLAGS} -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-undef"
cget install -f requirements.txt
cache: pip
install:
- rm -rf build && mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cget/cget/cget.cmake -DBUILD_TESTS=1 ..
- make
- cd ..
script:
- build/raremetal/tests/bin/tests-raremetal
- cd build
# The raremetalworker tests only work on OSX. If we're on OSX, then run the tests and return the result.
# Otherwise, this statement should return true, to avoid completely failing the entire build/job.
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then ctest --verbose; else true; fi