-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
69 lines (69 loc) · 2.03 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
sudo: required
addons:
hosts:
- travis1.local
- travis1
- etcd1
env:
global:
- PATH=$PATH:/tmp/test-etcd/
- ETCD_VER=v3.3.10
- ETCDCTL_API=3
- ETCD_TEST_HOST=etcd1
- ETCD_TEST_PORT=2379
- RELEASE_TESTING=1
- ETCD_NAME=member1
- ETCD_DEBUG=1
- ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=https://etcd1:2379
- ETCD_INITIAL_ADVERTISE_PEER_URLS=https://etcd1:2380
- ETCD_LISTEN_PEER_URLS=https://etcd1:2380
- ETCD_LISTEN_PEER_URLS=https://0.0.0.0:2380
- ETCD_PEER_KEY_FILE=${TRAVIS_BUILD_DIR}/t/tls/etcd1-key.pem
- ETCD_PEER_CERT_FILE=${TRAVIS_BUILD_DIR}/t/tls/etcd1.pem
- ETCD_CERT_FILE=${TRAVIS_BUILD_DIR}/t/tls/server.pem
- ETCD_KEY_FILE=${TRAVIS_BUILD_DIR}/t/tls/server-key.pem
- ETCD_TRUSTED_CA_FILE=${TRAVIS_BUILD_DIR}/t/tls/ca.pem
- ETCD_CLIENT_CERT_FILE=${TRAVIS_BUILD_DIR}/t/tls/client.pem
- ETCD_CLIENT_KEY_FILE=${TRAVIS_BUILD_DIR}/t/tls/client-key.pem
- ETCD_CLIENT_CA_FILE=${TRAVIS_BUILD_DIR}/t/tls/ca.pem
- ETCD_PEER_CLIENT_CERT_AUTH=1
language: perl
perl:
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
matrix:
include:
- perl: 5.26
env: COVERAGE=1 # enables coverage+coveralls reporting
allow_failures:
- perl: "5.28"
before_install:
- curl https://coreos.com/dist/pubkeys/app-signing-pubkey.gpg | sudo apt-key add -
- wget https://github.com/etcd-io/etcd/releases/download/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -O /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
- mkdir -p /tmp/test-etcd
- tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/test-etcd --strip-components=1
- /tmp/test-etcd/etcd -version
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- build-perl
- perl -V
- build-dist
- cd $BUILD_DIR
install:
- cpan-install --deps
- cpan-install --coverage
script:
- /tmp/test-etcd/etcd &
- sleep 3
- perl Makefile.PL
- make
- make test