Merge branch 'travis-use-pip'
Use pip rather than docker for installing httpbin under Travis to avoid errors due to rate limits for docker pull. See https://github.com/wxWidgets/wxWidgets/pull/2236
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -6,6 +6,9 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
|
- 'build/tools/appveyor*.bat'
|
||||||
|
- 'build/tools/before_install.sh'
|
||||||
|
- 'build/tools/travis-ci.sh'
|
||||||
- 'distrib/**'
|
- 'distrib/**'
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- 'interface/**'
|
- 'interface/**'
|
||||||
@@ -15,6 +18,9 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
|
- 'build/tools/appveyor*.bat'
|
||||||
|
- 'build/tools/before_install.sh'
|
||||||
|
- 'build/tools/travis-ci.sh'
|
||||||
- 'distrib/**'
|
- 'distrib/**'
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- 'interface/**'
|
- 'interface/**'
|
||||||
|
@@ -12,7 +12,7 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- dist: trusty
|
- dist: trusty
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env: wxGTK_VERSION=2 wxUSE_XVFB=1
|
env: wxGTK_VERSION=2 wxUSE_XVFB=1 wxUSE_DOCKER_HTTPBIN=1
|
||||||
name: wxGTK 2 Ubuntu 14.04
|
name: wxGTK 2 Ubuntu 14.04
|
||||||
- dist: bionic
|
- dist: bionic
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
@@ -16,10 +16,9 @@ launch_httpbin() {
|
|||||||
echo 'travis_fold:start:httpbin'
|
echo 'travis_fold:start:httpbin'
|
||||||
echo 'Running httpbin...'
|
echo 'Running httpbin...'
|
||||||
|
|
||||||
# Prefer to use docker if it's available as it's more robust than dealing
|
# Use docker if configured to do so, this works around Python/pip problems
|
||||||
# with pip -- but we need to have a fallback as at least Mac builds don't
|
# on some platforms.
|
||||||
# have docker.
|
if [ "$wxUSE_DOCKER_HTTPBIN" = 1 ]; then
|
||||||
if command -v docker; then
|
|
||||||
docker pull kennethreitz/httpbin
|
docker pull kennethreitz/httpbin
|
||||||
docker run -d -p 80:80 kennethreitz/httpbin
|
docker run -d -p 80:80 kennethreitz/httpbin
|
||||||
WX_TEST_WEBREQUEST_URL="http://localhost"
|
WX_TEST_WEBREQUEST_URL="http://localhost"
|
||||||
|
Reference in New Issue
Block a user