-
Notifications
You must be signed in to change notification settings - Fork 144
/
circle.yml
39 lines (34 loc) · 1.21 KB
/
circle.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
# configuration file for CircleCI testing (http://circleci.com)
# the goal is to test that docker image builds successfully
machine:
pre:
- sudo curl -L -o /usr/bin/docker 'https://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'
- sudo chmod 0755 /usr/bin/docker
services:
- docker
dependencies:
override:
# building docker
- make rep-image
- docker images
test:
override:
# running docker in background
- mkdir -p /home/ubuntu/rep/notebooks
- make -e NOTEBOOKS=/home/ubuntu/rep/notebooks run-daemon; sleep 20
- docker ps
- REP_IMAGE_NAME=`make print_name`
- echo $REP_IMAGE_NAME
- echo "{\"url\":\"$MN_URL\",\"token\":\"$MN_TOKEN\"}" > .rep-matrixnet.config.json
# TODO use $HOME
- docker cp .rep-matrixnet.config.json `make print_name`:/root/.rep-matrixnet.config.json
- docker ps
# looking at the contents of folder
- ls -la /home/ubuntu/rep/notebooks
- make show-logs
- curl --retry 10 --retry-delay 5 -v http://localhost:8888
- wget http://localhost:8888 -O output.html
- cat output.html
# check that word ipython or jupyter is met on the page
- grep -q "ipython\|jupyter" output.html
- make run-tests