-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
26 lines (22 loc) · 997 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: cpp
compiler:
- gcc
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.8 libegl1-mesa-dev libxmu6 libxmu-dev zlib1g-dev libpcre3-dev p7zip-full libxi-dev libreadline-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
install:
# cmake
- wget https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz --no-check-certificate
- tar xf cmake-3.3.2-Linux-x86_64.tar.gz
# swig
- wget http://downloads.sourceforge.net/project/swig/swig/swig-3.0.7/swig-3.0.7.tar.gz
- tar xf swig-3.0.7.tar.gz
- cd swig-3.0.7
- ./configure
- make
- sudo make install
- cd ..
script: mkdir -p build && cd build && ../cmake-3.3.2-Linux-x86_64/bin/cmake --version && ../cmake-3.3.2-Linux-x86_64/bin/cmake .. && ../cmake-3.3.2-Linux-x86_64/bin/cmake --build .