-
Notifications
You must be signed in to change notification settings - Fork 234
/
.travis.yml
50 lines (45 loc) · 1.19 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
language: go
dist: xenial
sudo: required
go:
- "1.12.17"
env:
global:
- CUDA_VERSION="10.0"
- CUDA_PKG_VERSION="130-1"
- CUDA_PKG=cuda-repo-ubuntu1404_${CUDA_VERSION}.${CUDA_PKG_VERSION}_amd64.deb
- CUDA_LIB_LOCAL=${HOME}/cuda_lib_${CUDA_VERSION}
- CUDA_HOME=${CUDA_LIB_LOCAL}
- PATH=${CUDA_HOME}/bin:${GOPATH}/bin:${CUDA_HOME}/nvvm/bin:${PATH}
- LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${TRAVIS_HOME}/gopath/src/github.com/uber/aresdb/lib
- GO111MODULE=on
- PKG_CONFIG_PATH=${LD_LIBRARY_PATH}/pkgconfig:${PKG_CONFIG_PATH}
cache:
directories:
- lib
- gtest
- $CUDA_LIB_LOCAL
# safelist
branches:
only:
- master
before_install:
- sudo .travis/pre_install.sh
install:
- rm -rf ./build && mkdir -p build
- .travis/install_clang_tools.sh
- .travis/install_cuda.sh
- ./build/cmake/bin/cmake .
- .travis/install_golang_tools.sh
script:
- while sleep 2m; do echo "=====[ $SECONDS seconds, build still running... ]====="; done &
- make travis
- make lint
- kill %1
after_success:
# generate coverage output file
- gover . coverage.txt
# send to codecov.io
- bash <(curl -s https://codecov.io/bash)
after_script:
- .travis/cleanup.sh