-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
57 lines (46 loc) · 1.44 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
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 install -y x11vnc
x11vnc -forever -nopw
background: true
- run: cp .env_sample .env
- run:
name: Making elasticsearch data dir
command: |
mkdir -p var/data/elasticsearch
sudo chown 1000:1000 var/data/elasticsearch
- run:
name: Build containers and collect static
command: |
docker-compose -f docker-compose.yml -f docker-compose.selenium.yml up -d
docker-compose exec django python manage.py collectstatic --noinput
- run:
name: e2e tests
command: ./run_selenium_tests.sh
no_output_timeout: 60m
- run:
name: pytest
command: docker-compose exec django py.test src/ -m "not e2e"
- run: docker-compose exec django flake8 src/ --ignore E501
- store_artifacts:
path: artifacts/
workflows:
version: 2
build_and_test:
jobs:
- test