forked from ckan/ckan
-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
39 lines (31 loc) · 1.5 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
machine:
environment:
PIP_USE_MIRRORS: true
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 -u postgres psql -c "CREATE USER ckan_default WITH PASSWORD 'pass';"
- sudo -u postgres psql -c "CREATE USER datastore_default WITH PASSWORD 'pass';"
- sudo -u postgres psql -c 'CREATE DATABASE ckan_test WITH OWNER ckan_default;'
- sudo -u postgres psql -c 'CREATE DATABASE datastore_test WITH OWNER ckan_default;'
- 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:
override:
- nosetests --ckan --reset-db --with-pylons=test-core.ini --nologcapture --with-coverage --cover-package=ckan --cover-package=ckanext ckan ckanext
post:
- paster serve test-core.ini:
background: true
- sleep 5
- mocha-phantomjs http://localhost:5000/base/test/index.html