-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
42 lines (31 loc) · 1.13 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
## Customize the test machine
machine:
timezone:
Asia/Kolkata # Set the timezone
# Version of python to use
python:
version: 2.7.9
services:
- docker
## Customize dependencies
dependencies:
pre:
# needed because circleCI has an outdated version of virtualenv which uses outdated version of setuptools,
# which fails the mock package install. See https://github.com/testing-cabal/mock/issues/261
- pip install -U pip wheel setuptools
- pip install -r pip-requirements.txt
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker pull oasisvali/hwcentral:mysql
- docker run --name mysql -d -p 8006:3306 oasisvali/hwcentral:mysql
- docker pull oasisvali/hwcentral:cabinet
- 'docker run --name cabinet -p 9878:9878 -d -e DOCKER_HOST_IP=$(ifconfig docker0 | grep ''inet addr:'' | awk -F'':'' ''{print $2}'' | awk ''{split($0,a," "); print a[1]}'') oasisvali/hwcentral:cabinet'
## Customize database
database:
override:
- scripts/database/data-update.sh
## Customize test commands
test:
pre:
- ./manage.py collectstatic --noinput
override:
- scripts/testing/all.sh