-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (32 loc) · 922 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
language: c
compiler:
- gcc
- clang
before_install:
- sudo apt-get install automake libtool flex
# ubuntu 12.04 gives bison 2.5, need to install 2.6
- wget http://ftp.gnu.org/gnu/bison/bison-2.6.tar.gz -O /tmp/bison-2.6.tar.gz
- tar -xzvf /tmp/bison-2.6.tar.gz
- cd bison-2.6
- ./configure
- make
- sudo make install
- cd ..
- sudo apt-get install libxml2 libxml2-dev
- sudo apt-get install zlib1g zlib1g-dev
- sudo apt-get install libgd2-xpm-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
- sudo cpan -f GD
script:
- $CC --version
- which $CC
# workaround clang not system wide, fail on sudo make install
- export CC=`which $CC`
- ./bootstrap.sh
- ./configure --enable-maintainer-mode --prefix=/usr
- make
- sudo make install
# test
- admsXml -h