forked from UCL-INGI/INGInious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (40 loc) · 1.54 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
32
33
34
35
36
37
38
39
40
41
42
# the code for this .Travis.yml has been mostly taken from https://github.com/haiwen/seafile-docker/blob/master/.travis.yml
language: python
python:
- "2.7"
env:
global:
- "HOST_IP=$(/sbin/ifconfig venet0:0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}')"
- DOCKER_HOST=tcp://$HOST_IP:2375
- SLIRP_PORTS="2375 4445"
- TEST_ENV=travis
services: mongodb
before_install:
- echo exit 101 | sudo tee /usr/sbin/policy-rc.d
- sudo chmod +x /usr/sbin/policy-rc.d
- pip install --upgrade pip
install:
- curl -sSL https://get.docker.com/ | sh
- sudo apt-get install slirp libtidy-* xvfb
- sudo usermod -aG docker "$USER"
- git clone git://github.com/cptactionhank/sekexe
- pip install --process-dependency-links --upgrade .
- sudo mkdir /var/lib/docker
- sudo mkdir /etc/docker
- sudo chmod -R 777 /var/lib/docker
- sudo chmod -R 777 /etc/docker
- sudo mkdir /agent_volume
before_script:
- "sudo HOST_IP=\"$HOST_IP\" SLIRP_PORTS=\"$SLIRP_PORTS\" sekexe/run 'mount -t tmpfs -o size=8g tmpfs /var/lib/docker && docker -d --log-level=error -H tcp://0.0.0.0:2375' &"
- "while ! docker info; do echo 'retrying to connect to docker...'; sleep 1; done"
- docker pull centos
- docker pull ingi/inginious-c-default
script:
- python setup.py test
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/ca35676eddd3efe5a17f
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false