forked from jonathan-beard/simple_wc_example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (54 loc) · 1.14 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
64
65
## container build, no sudo
sudo: false
language: cpp
compiler:
- gcc
- clang
os:
- linux
cache:
apt:
ccache:
directories:
env:
global:
- GCC_VERSION=5
- CXXFLAGS=-std=c++11
- CFLAGS=-std=c99
branches:
only:
- master
before_install:
- if [ ${CC} != "clang" ]; then
export CC=/usr/bin/gcc-${GCC_VERSION} CXX=/usr/bin/g++-${GCC_VERSION};
C=gcc;
fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
packages:
# ensure these match GCC_VERSION
- gcc-5
- g++-5
- binutils
- gawk
- build-essential
- wget
- libtool
- flex
before_script:
- echo $LANG
- echo $LC_ALL
- wget --no-check-certificate http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz
- mkdir $HOME/bison
- tar -xf bison-3.0.4.tar.gz; cd bison-3.0.4; ./configure --prefix=$HOME/bison; make -j 4 install; cd $PWD/..;
- export PATH=$HOME/bison/bin:$PATH
script:
- ${CC} --version ; ${CXX} --version;
- bison --version
- pwd
- ls -la $HOME
- env
- make all && make test