Adding travis file for testing.

This commit is contained in:
rakshasa
2016-03-10 08:27:27 +09:00
parent a92da121d7
commit 4ba24af463
+16
View File
@@ -0,0 +1,16 @@
language: cpp
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get build-dep rtorrent libtorrent-dev
# prevent `macro `AM_PATH_CPPUNIT' not found in library` in `autogen.sh`
- sudo apt-get install libcppunit-dev gcc-4.7 g++-4.7
# `autogen.sh` doesn't call `configure`
- export CC=gcc-4.7 && export CXX=g++-4.7
- git clone https://github.com/rakshasa/libtorrent.git && cd libtorrent && ./autogen.sh && configure && make -j24 && sudo make install && cd ..
script: ./autogen.sh && ./configure && make -j24 && make -j24 check && sudo make install