-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (56 loc) · 1.64 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
dist: trusty
sudo: false
language: ruby
services:
- mysql
rvm:
- "2.5"
- "2.4"
- "2.3"
- "ruby-head"
env:
global:
- RNP_VERSION="master"
- DATABASE_URL="mysql2://[email protected]/keyserver_test"
- DEPS_BUILD_DIR="${TRAVIS_BUILD_DIR}/build"
- DEPS_PREFIX="${TRAVIS_BUILD_DIR}/opt"
- BOTAN_PREFIX="${DEPS_PREFIX}/botan"
- JSONC_PREFIX="${DEPS_PREFIX}/json-c"
- RNP_PREFIX="${DEPS_PREFIX}/rnp"
# Be aware of differences between LD_LIBRARY_PATH and LD_RUN_PATH.
# - http://osr507doc.sco.com/en/tools/ccs_linkedit_dynamic_dirsearch.html
# - https://www.hpc.dtu.dk/?page_id=1180
#
# You should be careful when attempting to replicate following in your
# setup, because setting LD_LIBRARY_PATH is often a bad idea. Nevertheless,
# it is okay here in Travis, and actually any attempt to change these led me
# to linking failures. Side note: I am not a Linux expert, and you may be
# more lucky.
#
# I'd be happy to get rid of LD_LIBRARY_PATH eventually in some future
# pull request.
- LD_LIBRARY_PATH="${BOTAN_PREFIX}/lib:${JSONC_PREFIX}/lib:${RNP_PREFIX}/lib"
- PATH="${RNP_PREFIX}/bin:${PATH}"
cache:
bundler: true
directories:
- "${DEPS_PREFIX}"
before_install:
- gem install bundler -v 1.16.6
- mysql -e 'CREATE DATABASE keyserver_test;'
- mkdir -p ${DEPS_PREFIX}
- pushd ci
- ./install_botan.sh
- ./install_json_c.sh
- ./install_rnp.sh
- popd
matrix:
include:
- rvm: "2.5"
env: RNP_VERSION="v0.10.0"
- rvm: "2.5"
env: RNP_VERSION="v0.11.0"
- rvm: "2.5"
env: RNP_VERSION="v0.12.0"
allow_failures:
- rvm: ruby-head