-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.travis.yml
63 lines (53 loc) · 1.85 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
56
57
58
59
60
61
62
63
os:
- linux
- osx
# Sudo is required to swap out GCC for GCC-5 on linux.
sudo: required
osx_image: xcode10.2
dist: trusty
language:
- generic
env:
global:
# MacOS needs GNU tools in PATH, rather than BSD versions.
- PATH="$HOME/.local/bin:/usr/local/opt/coreutils/libexec/gnubin/stat:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
# Environment variables needed for zlib.
# See: https://github.com/pyenv/pyenv/issues/530
- PKG_CONFIG_PATH="$PKG_CONFIG_PATH /usr/local/opt/zlib/lib/pkgconfig"
- LDFLAGS="$LDFLAGS -L/usr/local/opt/zlib/lib"
- CPPFLAGS="$CPPFLAGS -I/usr/local/opt/zlib/include"
addons:
homebrew:
brewfile: tools/Brewfile.travis
apt:
sources:
- sourceline: 'ppa:jonathonf/python-3.6'
- sourceline: 'deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8'
key_url: 'https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg'
- ubuntu-toolchain-r-test
packages:
- openjdk-8-jdk
- python
- python3.6
- python3.6-dev
- bazel
- gcc-5
- g++-5
services:
- mysql
install:
# Remove pyenv, since we use the system package managers to install python.
- rm -rf $(pyenv root)
# Swap out GCC for GCC-5 on linux to enable support for --std=c++14.
# See: https://gist.github.com/cotsog/3ce84675af0d74438d91
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc; fi
# Symlink the system python2 in place so that we bypass the pyenv shim.
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then ln -s /usr/bin/python2 $HOME/.local/bin; fi
before_script:
# Print version numbers for debugging.
- python2 --version
- python3 --version
- bazel version
- gcc --version
script:
- ./tools/flaky_bazel.sh test --config=travis //deeplearning/clgen/...