https://github.com/jupyterhub/dockerspawner
Tip revision: 4b9b86deae2bcf44fb4fc0feb535997a4f0025fa authored by Min RK on 01 March 2019, 13:17:48 UTC
release 0.11.0
release 0.11.0
Tip revision: 4b9b86d
.travis.yml
sudo: required
language: python
python:
- 3.5
env:
global:
- ASYNC_TEST_TIMEOUT=30
matrix:
- JUPYTERHUB=0.8 EXTRA_PIP='tornado<5'
- JUPYTERHUB=0.9
services:
- docker
before_install:
- docker swarm init
- nvm install 10; nvm use 10
- npm install -g configurable-http-proxy
- pip install --pre --upgrade -r dev-requirements.txt jupyterhub==${JUPYTERHUB:-0}.* ${EXTRA_PIP}
install:
- pip install -e .
- pip freeze
script:
- pyflakes dockerspawner
- |
# pre-pull images to avoid long wait times in tests
for v in 0.8 0.9; do
docker pull jupyterhub/singleuser:$v
# preserve the layers with a different tag
docker tag jupyterhub/singleuser:$v jupyterhub/singleuser:${v}-cache
# untag so that pull actions are still required
docker rmi jupyterhub/singleuser:$v
done
- |
# run tests
if [[ -z "$TEST" ]]; then
travis_retry py.test --cov dockerspawner tests -v
fi
- |
# run internal-ssl test with docker-compose
if [[ "$TEST" = "internal-ssl" ]]; then
cd examples/internal-ssl
pytest -vsx
fi
matrix:
include:
- python: 3.6
env: TEST=internal-ssl