-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
32 lines (24 loc) · 1.03 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
language: cpp
compiler:
- gcc
- clang
sudo: true
dist: trusty
env:
- BUILDTYPE=GNUMAKE
before_install:
- sudo apt-get install build-essential imagemagick libsdl2-dev libimage-exiftool-perl
# workaround clang not system wide, fail on sudo make install for adms
- export CC=`which $CC`
install: sudo ./tools/build-libpng.sh
script:
- if [[ "$BUILDTYPE" == "GNUMAKE" ]]; then cd src && make && make test ; fi
- if [[ "$BUILDTYPE" == "ASAN" ]]; then mkdir build_cmake && cd build_cmake && cmake ../src -DMAKE_BUILD_TYPE=Release -DUSE_ASAN=ON && make && make test ; fi
- if [[ "$BUILDTYPE" == "CMAKE" ]]; then mkdir build_cmake && cd build_cmake && cmake ../src -DMAKE_BUILD_TYPE=Release && make && make test ; fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/d7137bab0c1e0a1d1089
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always