-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
47 lines (38 loc) · 1.73 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
machine:
environment:
PIP_USE_MIRRORS: true
CKAN_POSTGRES_DB: ckan_test
CKAN_POSTGRES_USER: ckan_default
CKAN_POSTGRES_PWD: pass
CKAN_DATASTORE_POSTGRES_DB: datastore_test
CKAN_DATASTORE_POSTGRES_WRITE_USER: ckan_default
CKAN_DATASTORE_POSTGRES_READ_USER: datastore_default
CKAN_DATASTORE_POSTGRES_READ_PWD: pass
dependencies:
override:
- pip install -r requirements.txt --allow-all-external
- pip install -r dev-requirements.txt --allow-all-external
- python setup.py develop
post:
- npm install -g [email protected] phantomjs@~1.9.1
database:
post:
- sudo -E -u postgres ./bin/postgres_init/1_create_ckan_db.sh
- sudo -E -u postgres ./bin/postgres_init/2_create_ckan_datastore_db.sh
- sed -i -e 's/.*datastore.read_url.*/ckan.datastore.read_url = postgresql:\/\/datastore_default:pass@\/datastore_test/' test-core.ini
- paster datastore -c test-core.ini set-permissions | sudo -u postgres psql
- cp -R /opt/solr-4.3.1 $HOME/solr
- cp ckan/config/solr/schema.xml $HOME/solr/example/solr/collection1/conf
- cd $HOME/solr/example; java -jar start.jar >> $HOME/solr.log:
background: true
- paster db init -c test-core.ini
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- nosetests --ckan --reset-db --with-pylons=test-core.ini --nologcapture --with-coverage --cover-package=ckan --cover-package=ckanext --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/nose/junit.xml ckan ckanext
post:
- paster serve test-core.ini:
background: true
- sleep 5
- mocha-phantomjs http://localhost:5000/base/test/index.html