-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
25 lines (25 loc) · 844 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
language: c
os: linux
dist: xenial
jobs:
include:
- name: Linux (gcc)
os: linux
compiler: gcc
- name: Linux (clang)
os: linux
compiler: clang
before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo add-apt-repository -y ppa:longsleep/golang-backports; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install golang-1.13-go; fi
install:
- if [ $TRAVIS_OS_NAME = linux ]; then export PATH=/usr/lib/go-1.13/bin:$PATH; fi
- if [ $TRAVIS_OS_NAME = linux ]; then export GOPATH=/usr/lib/go-1.13:$GOPATH; fi
- if [ $TRAVIS_OS_NAME = linux ]; then export GOROOT=/usr/lib/go-1.13; fi
before_script:
- git submodule init
- git submodule update --recursive
- cmake .
script:
- make