-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
43 lines (36 loc) · 1.77 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
language: cpp
os:
- linux
- osx
sudo: required
dist: trusty
# osx_image: xcode8
branches:
only:
- master
compiler:
- gcc
cache:
- apt
before_install:
# dependency installation
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install argp-standalone; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install homebrew/science/lp_solve; fi #deprectated
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew search lp_solve; fi #was not very useful
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap brewsci/science; brew install lp_solve; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qy update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qy install gcc g++ liblpsolve55-dev libgmp3-dev libxml2-dev doxygen graphviz; fi
script:
# unfortunately, getting everything to compile is not a walk in the park...
# -osx gives massive amounts of error messages *without* "-std=c++11", leading log files > 4MB, which causes travis to fail..
# -linux has g++ 4.8.4, and there compiling *with* "-std=c++11" leads to errors...
#
# For now, I am resorting back to the c++99 standard, but try to workaround the large log files with a script
# found online...
#
# In case we want to try the other route again (surpressing warnings), this is what I was doing:
# export CXXFLAGS="-std=c++11 -Wno-unused-local-typedefs -Wno-unused-variable -Wno-unused-but-set-variable -Wno-redeclared-class-member" && ./configure && make
- autoreconf -f -i
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./travis_build_workaround.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./configure && make && make check; fi