Skip to content

Commit b999001

Browse files
committed
Update etcd, urllib3, pyopenssl versions in travis builds
Specifically, use the latest pyopenssl, a fairly recent urllib3, and the most recent version of etcd 2.x
1 parent 3633914 commit b999001

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python:
44
- "3.5"
55

66
before_install:
7-
- ./build_etcd.sh v2.2.0
7+
- ./download_etcd.sh 2.3.7
88
- pip install --upgrade setuptools
99

1010
# command to install dependencies
@@ -16,7 +16,7 @@ install:
1616

1717
# command to run tests
1818
script:
19-
PATH=$PATH:./etcd/bin coverage run --source=src/etcd --omit="src/etcd/tests/*" bin/test
19+
PATH=$PATH:./bin coverage run --source=src/etcd --omit="src/etcd/tests/*" bin/test
2020

2121
after_success: coveralls
2222
# Add env var to detect it during build

build_etcd.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ fi
99

1010
echo "Using ETCD version $ETCD_VERSION"
1111

12+
BASE=$PWD
13+
mkdir -p gopath/src/coreos/
14+
export GOPATH=$BASE/gopath/
15+
cd $GOPATH/src/coreos
1216
git clone https://github.com/coreos/etcd.git
1317
cd etcd
14-
git checkout $ETCD_VERSION
18+
git checkout -b buildout $ETCD_VERSION
1519
./build
20+
cd $BASE
21+
cp -r $GOPATH/src/coreos/etcd/bin .
1622

1723

1824
${TRAVIS:?"This is not a Travis build. All Done"}

buildout.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ parts = python
55
coverage
66
develop = .
77
eggs =
8-
urllib3==1.7.1
9-
pyOpenSSL==0.13.1
8+
urllib3==1.19.1
9+
pyOpenSSL==16.2
1010
${deps:extraeggs}
1111

1212
[python]

download_etcd.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
VERSION=${1:-2.3.7}
4+
mkdir -p bin
5+
URL="https://github.com/coreos/etcd/releases/download/v${VERSION}/etcd-v${VERSION}-linux-amd64.tar.gz"
6+
curl -L $URL | tar -C ./bin --strip-components=1 -xzvf - "etcd-v${VERSION}-linux-amd64/etcd"

0 commit comments

Comments
 (0)