forked from lsh123/xmlsec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (52 loc) · 1.81 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
52
language: c
sudo: required
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
# install build tools
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$TRAVIS_ARCH" = "s390x" ]; then
sudo apt-get install automake autoconf libtool libtool-bin libltdl-dev libltdl7;
else
sudo apt-get install automake autoconf libtool;
fi;
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libtool; fi
# install libxml2/libxslt libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libxml2 libxml2-dev libxslt1.1 libxslt1-dev; fi
# install openssl libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libssl1.0.0 libssl-dev; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install openssl; fi
# install nspr/nss libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libnspr4 libnspr4-dev libnss3 libnss3-dev libnss3-tools; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install nss; fi
# install gcrypt libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$TRAVIS_ARCH" = "s390x" ]; then
sudo apt-get install libgcrypt20 libgcrypt20-dev;
else
sudo apt-get install libgcrypt11 libgcrypt11-dev;
fi;
fi
# install gnutls libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$TRAVIS_ARCH" = "s390x" ]; then
sudo apt-get install libgnutls-dev;
else
sudo apt-get install libgnutls28 libgnutls-dev;
fi;
fi
script:
- . scripts/travis-env.sh && mkdir build && cd build && ../autogen.sh --enable-werror && make && make check
matrix:
include:
- name: "linux-x86_64"
os: linux
dist: trusty
- name: "osx"
os: osx
osx_image: xcode9.3
- name: "linux-s390x"
os: linux
arch: s390x
dist: xenial