-
Notifications
You must be signed in to change notification settings - Fork 7
/
circle.yml
49 lines (39 loc) · 1.7 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
38
39
40
41
42
43
44
45
46
47
48
49
general:
branches:
ignore:
- master
- develop
machine:
services:
- docker
dependencies:
pre:
- sudo pip install selenium
- sudo pip install pytest
- sudo pip install flaky
- sudo pip install pytest-timeout
cache_directories:
# automatically cache build docker image between builds
- "~/docker"
- "~/images"
override:
- docker info
- mkdir -p ~/docker
- mkdir -p ~/images
# Restore docker build image and configure Dockerfile
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; else docker pull docker.io/astrilet/cartabuild:latest; docker save docker.io/astrilet/cartabuild:latest > ~/docker/image.tar; fi
- cat ~/CARTAvis/Dockerfile | envsubst > ~/CARTAvis/Dockerfile.new
- mv ~/CARTAvis/Dockerfile.new ~/CARTAvis/Dockerfile
# Get Selenium test images if they are not cached yet
- if [[ ! -e ~/images/SeleniumTestImages.tgz ]]; then curl -L https://googledrive.com/host/0B6trezaEcQQ9NXN0aGJPRk1XTGM/SeleniumTestImages.tgz > ~/images/SeleniumTestImages.tgz; fi
# build CARTAvis
- docker build -t astrilet/circlecibuild .
test:
override:
# Run scripted client tests
- docker run astrilet/circlecibuild /home/developer/src/CARTAvis/carta/scripts/runScriptedClientTests.sh
# Start CARTAvis server int the docker container
#- docker run -d -p 8080:8080 astrilet/circlecibuild /home/developer/src/CARTAvis/carta/scripts/startCARTAServer.sh && sleep 60
# Run Selenium Tests
#- cd ~/CARTAvis/carta/html5/common/skel/source/class/skel/simulation; echo -e '1\n1\n' | ./ciSeleniumTests.py
#- cd ~/CARTAvis/carta/html5/common/skel/source/class/skel/simulation; ./ciSeleniumTests.sh