forked from ColinPitrat/caprice32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (50 loc) · 1.42 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: cpp
# Do not build latest as this is just a tag on the latest successful release by appveyor
branches:
except:
- latest
#To uncomment in case a core occurs:
#sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- libsdl1.2-dev
- libfreetype6-dev
- zlib1g-dev
- libpng-dev
- gcc-4.8
- g++-4.8
- clang-3.8
- clang-tidy-3.8
# For debian package validation
- dpkg-dev
- pbuilder
- quilt
- devscripts
- fakeroot
- debhelper
#To uncomment in case a core occurs:
# - gdb
before_script:
- export CXX=g++-4.8
- wget http://softpres.org/_media/files:ipflib42_linux-x86_64.tar.gz -O /tmp/ipflib42_linux-x86_64.tar.gz
- tar -xf /tmp/ipflib42_linux-x86_64.tar.gz 2>&1 >/dev/null
- sudo cp -r x86_64-linux-gnu-capsimage/include/caps /usr/include
# Build and test both in release and debug to ensure both works fine
script:
#To uncomment in case a core occurs:
# - ulimit -c unlimited
# - sudo sysctl kernel.core_pattern=core
- make WITH_IPF=true
- make WITH_IPF=true unit_test
- make e2e_test
- make clean
- make debug CFLAGS=-Wno-literal-suffix
- make clang-tidy
- make deb_pkg VERSION=99.99.0 REVISION=1
#To uncomment in case a core occurs:
# - find ./ -name 'core*'
# - for i in $(find ./ -name 'core*' -print); do gdb ./test/test_runner $i -ex "thread apply all bt" -ex "set pagination 0" -batch; done;