-
Notifications
You must be signed in to change notification settings - Fork 115
/
.travis.yml
71 lines (62 loc) · 2.55 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: cpp
matrix:
include:
# CoreGraphics/Cocoa on MacOSX
- os: osx
compiler: clang
osx_image: xcode9.1
brew_packages: libpng
before_script:
- mkdir build
- cd build
- curl -# -o clang6_0_0.tar.xz http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz
- tar -xJf clang6_0_0.tar.xz
- mv clang+llvm-6.0.0-x86_64-apple-darwin clang
script:
- export CXXFLAGS="-nostdinc++ -isystem$TRAVIS_BUILD_DIR/build/clang/include/c++/v1"
- export LDFLAGS="-L$TRAVIS_BUILD_DIR/build/clang/lib -Wl,-rpath,$TRAVIS_BUILD_DIR/build/clang/lib"
- export CTEST_OUTPUT_ON_FAILURE="1"
- cmake -G "Unix Makefiles" --config Debug -DCMAKE_BUILD_TYPE=Debug -DIO2D_DEFAULT=COREGRAPHICS_MAC ../.
- make
- ctest -V -C Debug
# Cairo/Xlib on MacOSX
- os: osx
compiler: clang
osx_image: xcode9.1
before_script:
- mkdir build
- cd build
- curl -# -o clang6_0_0.tar.xz http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz
- tar -xJf clang6_0_0.tar.xz
- mv clang+llvm-6.0.0-x86_64-apple-darwin clang
- export COLUMNS=80
- curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
- chmod +x ./macports-ci
- ./macports-ci install
- PATH="/opt/local/bin:$PATH"
- sudo port -N -k install cairo +x11
- brew install graphicsmagick
script:
- export CXXFLAGS="-nostdinc++ -isystem$TRAVIS_BUILD_DIR/build/clang/include/c++/v1 -isystem/opt/X11/include -isystem/opt/local/include -isystem/usr/local/include"
- export LDFLAGS="-L$TRAVIS_BUILD_DIR/build/clang/lib -Wl,-rpath,$TRAVIS_BUILD_DIR/build/clang/lib -L/opt/X11/lib -L/opt/local/lib -L/usr/local/lib"
- export CTEST_OUTPUT_ON_FAILURE="1"
- cmake -G "Unix Makefiles" --config Debug -DCMAKE_BUILD_TYPE=Debug -DIO2D_DEFAULT=CAIRO_XLIB ../.
- make
- ctest -V -C Debug
# Cairo/Xlib on Linux
- os: linux
sudo: required
dist: trusty
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: ['g++-7', 'build-essential', 'libcairo2-dev', 'libgraphicsmagick1-dev', 'libpng-dev']
before_script:
- mkdir build
- cd build
script:
- export CXX=g++-7
- export CTEST_OUTPUT_ON_FAILURE="1"
- cmake -G "Unix Makefiles" --config Debug -DCMAKE_BUILD_TYPE=Debug -DIO2D_DEFAULT=CAIRO_XLIB ../.
- make
- ctest -V -C Debug