Skip to content

Commit 893565f

Browse files
committed
Travis CI configuration
Builds for Linux (uses Travis' Ubuntu/Precise) and OS X
1 parent 297e7aa commit 893565f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: cpp
2+
3+
os:
4+
- linux
5+
- osx
6+
sudo: required
7+
8+
addons:
9+
apt:
10+
packages:
11+
- libwww-perl
12+
13+
compiler:
14+
- gcc
15+
- clang
16+
17+
before_install:
18+
- if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] ; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get -qq update && sudo apt-get -qq install g++-4.8 gcc-4.8 && 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 ; fi
19+
20+
install:
21+
- chmod a+x regression/failed-tests-printer.pl
22+
- cd src && make minisat2-download
23+
24+
script:
25+
- make CXXFLAGS="-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare" -j2 && cd ../regression && make test

0 commit comments

Comments
 (0)