-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (92 loc) · 3.07 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
language: c++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
- libtclap-dev
- libgnutls28-dev
- libgnutlsxx28
- uuid-dev
- libncurses5-dev
- libnotify-dev
- libuv1-dev
- libcurl4-gnutls-dev
- build-essential
- gcc-5
- g++-5
- gcc-6
- g++-6
- gcc-7
- g++-7
- gcc-8
- g++-8
- gcc-9
- g++-9
matrix:
include:
- env: TRAVIS_CC=gcc-5 TRAVIS_CXX=g++-5
- env: TRAVIS_CC=gcc-6 TRAVIS_CXX=g++-6
- env: TRAVIS_CC=gcc-7 TRAVIS_CXX=g++-7
- env: TRAVIS_CC=gcc-8 TRAVIS_CXX=g++-8
- env: TRAVIS_CC=gcc-9 TRAVIS_CXX=g++-9
before_install:
- export PATH="${HOME}/dependencies/install/bin:$PATH"
- export PKG_CONFIG_PATH="${HOME}/dependencies/install/lib/pkgconfig"
- export CC=$TRAVIS_CC
- export CXX=$TRAVIS_CXX
- PCONFIGURE_VERSION=0.12.5
- PSQLITE_VERSION=0.0.7
- PUTIL_VERSION=0.0.6
- LIBBASE64_VERSION=1.0.0_p3
- GITDATE_VERSION=0.0.3
- PSON_VERSION=0.0.4
- export MAKEFLAGS="-j3"
- export S="$(pwd)"
- mkdir -p "${HOME}/dependencies"
- cd "${HOME}/dependencies"
- wget "https://github.com/palmer-dabbelt/pconfigure/archive/v${PCONFIGURE_VERSION}.tar.gz" -O "${PCONFIGURE_VERSION}.tar.gz"
- tar -xvzpf "${PCONFIGURE_VERSION}.tar.gz"
- cd "pconfigure-${PCONFIGURE_VERSION}"
- ./bootstrap.sh --prefix "${HOME}/dependencies/install"
- make install
- cd "${HOME}/dependencies"
- wget "https://github.com/palmer-dabbelt/gitdate/archive/v${GITDATE_VERSION}.tar.gz" -O "${GITDATE_VERSION}.tar.gz"
- tar -xvzpf "${GITDATE_VERSION}.tar.gz"
- cd "gitdate-${GITDATE_VERSION}"
- pconfigure --verbose "PREFIX = ${HOME}/dependencies/install"
- make
- make install
- cd "${HOME}/dependencies"
- wget "https://github.com/palmer-dabbelt/psqlite/archive/v${PSQLITE_VERSION}.tar.gz" -O "${PSQLITE_VERSION}.tar.gz"
- tar -xvzpf "${PSQLITE_VERSION}.tar.gz"
- cd "psqlite-${PSQLITE_VERSION}"
- pconfigure --verbose "PREFIX = ${HOME}/dependencies/install"
- make install
- cd "${HOME}/dependencies"
- wget "https://github.com/palmer-dabbelt/putil/archive/v${PUTIL_VERSION}.tar.gz" -O "${PUTIL_VERSION}.tar.gz"
- tar -xvzpf "${PUTIL_VERSION}.tar.gz"
- cd "putil-${PUTIL_VERSION}"
- pconfigure --verbose "PREFIX = ${HOME}/dependencies/install"
- make install
- cd "${HOME}/dependencies"
- wget "https://github.com/palmer-dabbelt/libbase64/archive/v${LIBBASE64_VERSION}.tar.gz" -O "${LIBBASE64_VERSION}.tar.gz"
- tar -xvzpf "${LIBBASE64_VERSION}.tar.gz"
- cd "libbase64-${LIBBASE64_VERSION}"
- autoreconf -i
- ./configure --prefix="${HOME}/dependencies/install"
- make
- make install
- cd "${HOME}/dependencies"
- wget "https://github.com/palmer-dabbelt/pson/archive/v${PSON_VERSION}.tar.gz" -O "${PSON_VERSION}.tar.gz"
- tar -xvzpf "${PSON_VERSION}.tar.gz"
- cd "pson-${PSON_VERSION}"
- pconfigure --verbose "PREFIX = ${HOME}/dependencies/install"
- make install
- cd "${S}"
script:
- pconfigure --verbose
- make
- make check
- ptest --verbose