forked from codalab/codabench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
58 lines (47 loc) · 1.69 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
50
51
52
53
54
55
56
57
58
version: 2
jobs:
test:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
- run:
# NOTE: To connect to this, use an SSH tunnel in front, like so..
#
# In one terminal:
# $ ssh -p PORT ubuntu@CIRCLE_IP_ADDRESS -L 5900:localhost:5900
#
# In another terminal:
# $ open vnc://0.0.0.0:5900
name: Download and start X for VNC viewing
command: |
sudo apt-get update
sudo apt-get install -y x11vnc
# x11vnc -forever -nopw
background: true
- run: cp .env_circleci .env
- run:
name: Making gross directories for minio, cannot be made by docker for some reason
command: |
sudo mkdir -p var/minio/public
sudo mkdir -p var/minio/private
- run:
name: Build containers and collect static
command: |
docker-compose -f docker-compose.yml -f docker-compose.selenium.yml up -d
docker-compose -f docker-compose.yml -f docker-compose.selenium.yml exec django python manage.py collectstatic --noinput
- run: docker-compose exec django flake8 src/
- run:
name: pytest
command: docker-compose -f docker-compose.yml -f docker-compose.selenium.yml exec django py.test src/ -m "not e2e"
- run:
name: e2e tests
command: docker-compose -f docker-compose.yml -f docker-compose.selenium.yml exec django py.test src/tests/functional/ -m e2e
no_output_timeout: 60m
- store_artifacts:
path: artifacts/
workflows:
version: 2
build_and_test:
jobs:
- test