-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
46 lines (41 loc) · 1.52 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
44
45
46
sudo: required
install:
- ./tests/travis-setup.sh
addons_shortcuts:
addons_clang: &clang
apt:
sources: [ 'ubuntu-toolchain-r-test', 'ppa:kubuntu-ppa/backports' ]
packages:
- libvisio-dev
- clang
- libboost-dev
- libxml2-dev
- valgrind
- cmake
- libcppunit-dev
- autotools-dev
- doxygen
- gperf
- libicu-dev
- zlib1g-dev
- libpng-dev
- libwmf-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcode-select --install;true; fi
- 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 libwmf; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install valgrind; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libxml2; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install icu4c; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install intltool; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install librevenge; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libvisio; fi
matrix:
include:
- os: linux
compiler: "clang"
addons: *clang
dist: trusty
- os: osx
script: CC=clang CXX=clang++ cmake . -DCMAKE_LIBRARY_PATH=./tests/usr/local/lib/ -DCMAKE_INCLUDE_PATH=./tests/usr/local/include/ -DUSE_CLANG=ON -DUNSAFE_FILENAME=ON && make #&& ./tests/resources/check_correctness.sh -rsxn