File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,10 @@ matrix:
42
42
- python : " 3.7"
43
43
dist : xenial
44
44
env : TOXENV=packaging
45
+ - python : " 3.6"
46
+ env : TOXENV=h2spec
45
47
46
48
install :
47
- - " pip install -U pip setuptools"
48
- - " pip install -U tox"
49
+ - _travis/install.sh
49
50
script :
50
51
- tox -- --hypothesis-profile travis
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+ set -x
5
+
6
+ pip install -U pip setuptools
7
+ pip install -U tox
8
+
9
+ if [ $TOXENV = " h2spec" ]; then
10
+ # We want to get the latest release of h2spec. We do that by asking the
11
+ # Github API for it, and then parsing the JSON for the appropriate kind of
12
+ # binary. Happily, the binary is always called "h2spec" so we don't need
13
+ # even more shenanigans to get this to work.
14
+ TARBALL=$( curl -s https://api.github.com/repos/summerwind/h2spec/releases/latest | jq ' .assets[] | .browser_download_url | select(endswith("linux_amd64.tar.gz"))' )
15
+ curl -LO " $TARBALL "
16
+ tar xvf $TARBALL
17
+ mv h2spec /usr/local/bin
18
+ fi
You can’t perform that action at this time.
0 commit comments