forked from mono/libgdiplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (45 loc) · 1.37 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
language: c
dist: trusty
sudo: false
os:
- linux
- osx
addons:
apt:
packages:
- 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; 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 ./autogen.sh --without-x11 --prefix=/tmp/mono-dev --enable-warnaserror; 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
- set +e
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then exit 0; fi
- echo "travis_fold:start:build_mono"
- cd ..
- git clone --depth 1 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
- 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