-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
31 lines (26 loc) · 1.12 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
sudo: required
env:
- DOCKER_COMPOSE_VERSION=1.15.0
services:
- docker
before_install:
# Install newest Docker Compose and Docker Engine
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
script:
# Build the container
- docker-compose -f docker-compose-travis.yml up -d jupyterhub
# Verify that it's running
- test $(docker ps -q -f "status=running" | wc -l) -eq 1
# Wait for Docker Jupyterhub to actually initialize. Should be a few seconds
- sleep 15
# Verify that a curl requests gets a proper version response
- chmod +x ./files/jupyterhub/travis-tests.sh && ./files/jupyterhub/travis-tests.sh
after_script:
- docker-compose down jupyterhub