forked from shakefu/jetconfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.56 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
language: node_js
node_js:
- "6"
- "7"
- "8"
- "10"
- "12"
- "13"
env:
- >
CXX=g++-4.8
INSTALL_ETCD=3.2.0
_ETCD="./etcd"
- >
CXX=g++-4.8
INSTALL_ETCD=2.3.7
_ETCD="./etcd"
- >
CXX=g++-4.8
INSTALL_ETCD=2.3.7
_SSL="`pwd`/test/ssl"
_ETCD="./etcd -client-cert-auth -trusted-ca-file=${_SSL}/cacert.pem -cert-file=${_SSL}/server.crt -key-file=${_SSL}/server.key -advertise-client-urls https://127.0.0.1:2379 -listen-client-urls https://127.0.0.1:2379"
JETCONFIG_SSL_CA="${_SSL}/cacert.pem"
JETCONFIG_SSL_CERT="${_SSL}/client.crt"
JETCONFIG_SSL_KEY="${_SSL}/client.key"
- >
CXX=g++-4.8
INSTALL_ETCD=2.3.7
_SSL="`pwd`/test/ssl"
_ETCD="./etcd -trusted-ca-file=${_SSL}/cacert.pem -cert-file=${_SSL}/server.crt -key-file=${_SSL}/server.key -advertise-client-urls https://127.0.0.1:2379 -listen-client-urls https://127.0.0.1:2379"
JETCONFIG_SSL_CA="${_SSL}/cacert.pem"
before_script:
- curl -L https://github.com/coreos/etcd/releases/download/v${INSTALL_ETCD}/etcd-v${INSTALL_ETCD}-linux-amd64.tar.gz -o etcd-v${INSTALL_ETCD}-linux-amd64.tar.gz
- tar xzvf etcd-v${INSTALL_ETCD}-linux-amd64.tar.gz
- cd etcd-v${INSTALL_ETCD}-linux-amd64
- ./etcd --version
- ${_ETCD} &
- cd -
- sleep 3 # Give etcd startup time
# - curl -v --cacert ${JETCONFIG_SSL_CA} --cert ${JETCONFIG_SSL_CERT} --key ${JETCONFIG_SSL_KEY} https://127.0.0.1:2379/v2/keys
# - curl -v --cacert ${JETCONFIG_SSL_CA} https://127.0.0.1:2379/v2/keys
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8