forked from sparsehash/sparsehash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.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
language: generic
branches:
only:
- master
matrix:
include:
- os: linux
dist: xenial
sudo: required
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: osx
osx_image: xcode10.2
language: c++
compiler: clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then eval "${MATRIX_EVAL}"; sudo ln -s /usr/bin/gcc-7 /usr/local/bin/gcc; sudo ln -s /usr/bin/g++-7 /usr/local/bin/g++; gcc -v; fi
script:
- set -e
- bash mkn.sh
- git clone https://github.com/Dekken/maiken -b master --depth 1 maiken
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make bsd CXX=clang++ -C maiken; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make nix -C maiken; fi
- mv maiken/mkn .
- KLOG=3 ./mkn build -tOa "-fPIC -std=c++14" -p test run -l "-pthread -ldl"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make CXX=clang++ -C google; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make -C google; fi