-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
75 lines (72 loc) · 2.29 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
66
67
68
69
70
71
72
73
74
75
language: java
jobs:
include:
- os: linux
dist: trusty
jdk: oraclejdk8
- os: linux
dist: trusty
jdk: oraclejdk11
- os: osx
osx_image: xcode9.3
jdk: oraclejdk8
- os: osx
osx_image: xcode9.3
jdk: oraclejdk11
before_install:
|
if [ $TRAVIS_OS_NAME = "osx" ]; then
brew update ;
brew install gcc r git cmake libtool automake yasm zlib nasm ;
echo "Building GKL";
else
sudo unlink /usr/bin/gcc ;
sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc;
sudo unlink /usr/bin/g++;
sudo ln -s /usr/bin/g++-5 /usr/bin/g++;
# kill old binutils;
sudo rm /usr/bin/objdump;
sudo rm /usr/bin/nm;
sudo rm /usr/bin/as;
sudo rm /usr/bin/ranlib;
sudo rm /usr/bin/strip;
sudo rm /usr/bin/strings;
sudo rm /usr/bin/addr2line;
sudo rm /usr/bin/elfedit;
sudo rm /usr/bin/ar;
sudo rm /usr/bin/gprof;
sudo rm /usr/bin/ld.bfd;
sudo rm /usr/bin/dwp;
sudo rm /usr/bin/readelf;
sudo rm /usr/bin/ld.gold;
sudo rm /usr/bin/c++filt;
sudo rm /usr/bin/objcopy;
sudo rm /usr/bin/size;
# replace with new binutils;
sudo ln -s /usr/bin/objdump-2.26 /usr/bin/objdump;
sudo ln -s /usr/bin/nm-2.26 /usr/bin/nm;
sudo ln -s /usr/bin/as-2.26 /usr/bin/as;
sudo ln -s /usr/bin/ranlib-2.26 /usr/bin/ranlib;
sudo ln -s /usr/bin/strip-2.26 /usr/bin/strip;
sudo ln -s /usr/bin/strings-2.26 /usr/bin/strings;
sudo ln -s /usr/bin/addr2line-2.26 /usr/bin/addr2line;
sudo ln -s /usr/bin/elfedit-2.26 /usr/bin/elfedit;
sudo ln -s /usr/bin/ar-2.26 /usr/bin/ar;
sudo ln -s /usr/bin/gprof-2.26 /usr/bin/gprof;
sudo ln -s /usr/bin/ld.bfd-2.26 /usr/bin/ld.bfd;
sudo ln -s /usr/bin/dwp-2.26 /usr/bin/dwp;
sudo ln -s /usr/bin/readelf-2.26 /usr/bin/readelf;
sudo ln -s /usr/bin/ld.gold-2.26 /usr/bin/ld.gold;
sudo ln -s /usr/bin/c++filt-2.26 /usr/bin/c++filt;
sudo ln -s /usr/bin/objcopy-2.26 /usr/bin/objcopy;
sudo ln -s /usr/bin/size-2.26 /usr/bin/size;
fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- yasm
- binutils-2.26