-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (33 loc) · 905 Bytes
/
.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
language: generic
branches:
only:
- master
matrix:
include:
- os: linux
dist: bionic
sudo: required
compiler: gcc
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-8
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- os: osx
compiler: clang
osx_image: xcode11
before_install:
- |
git clone https://github.com/Dekken/maiken --depth 10 -b master maiken
[[ "${TRAVIS_OS_NAME}" == "osx" ]] && make bsd -C maiken CXX="clang++"
[[ "${TRAVIS_OS_NAME}" == "linux" ]] && eval "${MATRIX_EVAL}"
[[ "${TRAVIS_OS_NAME}" == "linux" ]] && make nix -C maiken CXX="$CXX"
mv maiken/mkn .
script:
- |
export MKN_LIB_LINK_LIB="1" KUL_GIT_CO="--depth 3" KLOG="3" CC CXX
./mkn build -tOa "-fPIC -std=c++17" -d
./mkn build -tOa "-fPIC -std=c++17" -p test run -l "-pthread -ldl"