forked from mono/libgdiplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.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
language: c
os:
- linux
- osx
addons:
apt:
packages:
- libpango1.0-dev
- libgif-dev
- xvfb
- autoconf
- libtool
- automake
- build-essential
- gettext
- cmake
- git
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install glib cairo libexif libjpeg giflib libtiff autoconf libtool automake pango pkg-config || true; fi
script:
- set -e
- export CFLAGS="-ggdb3 -O2"
- echo "travis_fold:start:build_libgdiplus"
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./autogen.sh --prefix=/tmp/mono-dev --enable-warnaserror; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig" ./autogen.sh --without-x11 --prefix=/tmp/mono-dev --enable-warnaserror --enable-asan; fi
- make -j4
- echo "travis_fold:end:build_libgdiplus"
- /bin/sh -c 'if make check; then true; else cat ./tests/test-suite.log; exit 1; fi'
- make install
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then set +e; exit 0; fi
- echo "travis_fold:start:build_mono"
- cd ..
- git clone --depth 1 --recurse-submodules https://github.com/mono/mono
- cd mono
- ./autogen.sh --prefix=/tmp/mono-dev --with-libgdiplus=/tmp/mono-dev/lib/libgdiplus.so --disable-boehm
- make -j4
- make -C mcs/class/System.Drawing test
- make -C mcs/class/System.Windows.Forms test
- set +e
- echo "travis_fold:end:build_mono"
# Run the System.Drawing and System.Windows.Forms tests.
- make -C mcs/class/System.Drawing run-test
- make -C mcs/class/System.Drawing run-xunit-test
- xvfb-run make -C mcs/class/System.Windows.Forms run-test