This repository has been archived by the owner on Jun 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (67 loc) · 2.49 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
os: linux
dist: trusty
sudo: false
language: perl
perl:
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
- "5.8"
env:
global:
- JOBS=3
- PERL_MM_USE_DEFAULT=1
- AUTOMATED_TESTING=1
- RELEASE_TESTING=0
matrix:
- OPENSSL_VERSION=1.1.0g
- OPENSSL_VERSION=1.0.2n
- OPENSSL_VERSION=1.0.1u
- OPENSSL_VERSION=1.0.0s
- OPENSSL_VERSION=0.9.8zh
matrix:
exclude:
- perl: "5.8"
env: OPENSSL_VERSION=1.1.0g
cache:
directories:
- openssl_version_cache
before_install:
- mkdir -p openssl_version_cache/src
- mkdir -p openssl_version_cache/build
install:
- if [ ! -f openssl_version_cache/src/openssl-$OPENSSL_VERSION.tar.gz ]; then wget -k -P openssl_version_cache/src https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz; fi
script:
- |
if [ ! -d openssl_version_cache/build/openssl-$OPENSSL_VERSION ]; then
if [ ! -d openssl_version_cache/src/openssl-$OPENSSL_VERSION ]; then
cd openssl_version_cache/src
tar xzf openssl-$OPENSSL_VERSION.tar.gz || exit 1
cd ../..
fi
if [ ! -d openssl_version_cache/src/openssl-$OPENSSL_VERSION ]; then
echo "ERROR Dir openssl_version_cache/src/openssl-$OPENSSL_VERSION does not exist" && exit 1
fi
cd openssl_version_cache/src/openssl-$OPENSSL_VERSION
if [ "$OPENSSL_VERSION" = "1.0.0s" ] || [ "$OPENSSL_VERSION" = "0.9.8zh" ]; then
./Configure linux-x86_64 --prefix=$PWD/../../build/openssl-$OPENSSL_VERSION --openssldir=$PWD/../../build/openssl-$OPENSSL_VERSION/ssl shared -Wa,--noexecstack > build.log 2>&1 || (cat build.log && exit 1)
make > build.log 2>&1 || (cat build.log && exit 1)
make install_sw > build.log 2>&1 || (cat build.log && exit 1)
make install_ssldirs > build.log 2>&1 || (cat build.log && exit 1)
else
./Configure linux-x86_64 --prefix=$PWD/../../build/openssl-$OPENSSL_VERSION --openssldir=$PWD/../../build/openssl-$OPENSSL_VERSION/ssl enable-shared -Wa,--noexecstack > build.log 2>&1 || (cat build.log && exit 1)
make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
make install_sw > build.log 2>&1 || (cat build.log && exit 1)
make install_ssldirs > build.log 2>&1 || (cat build.log && exit 1)
fi
cd ../../..
fi
- OPENSSL_PREFIX=$PWD/openssl_version_cache/build/openssl-$OPENSSL_VERSION LD_LIBRARY_PATH=$PWD/openssl_version_cache/build/openssl-$OPENSSL_VERSION/lib perl Makefile.PL
- make
- make test