-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
34 lines (33 loc) · 1.42 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
language: cpp
script:
- mkdir build_1 && cd build_1
- ../configure
- make check
- cat test/test-suite.log
- sudo make install
# cross compile for windows
- cd .. && mkdir build_2 && cd build_2
- ../configure --host i686-w64-mingw32 --build i686-pc-linux-gnu CXX=i686-w64-mingw32-g++ CC=i686-w64-mingw32-gcc
- make check
- cat test/test-suite.log
- cd ..
- ./configure
- make distcheck
before_install:
# update apt sources, i want a recent automake!
- echo "deb http://us.archive.ubuntu.com/ubuntu/ trusty main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe" | sudo tee -a /etc/apt/sources.list
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update
install:
# install a proper compiler, c++11 is required
- sudo apt-get install -qq -y automake build-essential autoconf m4 gnulib
- sudo apt-get install -qq -y gcc-4.8 g++-4.8 libfaketime
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- g++ --version
- automake --version
# xmllint etc, required for 'make check'
- sudo apt-get install -qq -y -o Dpkg::Options::="--force-confold" libxml2-utils
# windows cross compiler + wine for 'make check'
- sudo apt-get install -qq -y -o Dpkg::Options::="--force-confold" wine binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686