-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (38 loc) · 966 Bytes
/
.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
language: c
compiler:
- gcc
- clang
# Settings to try
env:
matrix:
- BUILD_SYSTEM=autotools
- BUILD_SYSTEM=cmake
before_install:
- sudo apt-get install automake libtool flex
- sudo apt-get install libxml2 libxml2-dev
# configure cpan, no waiting for user input
- (echo y;echo o conf prerequisites_policy follow;echo o conf commit)| sudo cpan
- sudo cpan -i XML::LibXML
script:
- bison --version
- flex --version
- $CC --version
- which $CC
# workaround clang not system wide, fail on sudo make install
- export CC=`which $CC`
- case $BUILD_SYSTEM in
autotools)
./bootstrap.sh &&
./configure --enable-maintainer-mode --prefix=/usr &&
make &&
sudo make install
;;
cmake)
mkdir build && cd build &&
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DUSE_MAINTAINER_MODE=ON &&
make &&
sudo make install
;;
esac ;
# test
- admsXml -h