forked from DataShades/ckanext-scheming
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
44 lines (39 loc) · 1.43 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
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
SOLR_HOME: $HOME/solr
SOLR_SCHEMA: ckan/ckan/config/solr/schema.xml
dependencies:
pre:
- mkdir -p ~/.local/bin
- curl -fsSL https://raw.githubusercontent.com/michaelcontento/circleci-matrix/master/src/circleci-matrix.sh -o ~/.local/bin/circleci-matrix
- chmod +x ~/.local/bin/circleci-matrix
override:
- git clone https://github.com/ckan/ckan
- python setup.py develop
- pip install -r requirements.txt
- mkdir subdir; mv test.ini test_subclass.ini subdir
database:
post:
- cp -R /opt/solr-4.3.1 $SOLR_HOME
- cd ckan; git checkout dev-v2.6 # for 2.3 solr schema
- cd $SOLR_HOME/example; java -jar start.jar >> $HOME/solr.log:
background: true
- sudo -E -u postgres ckan/bin/postgres_init/1_create_ckan_db.sh
- sudo -E -u postgres ckan/bin/postgres_init/2_create_ckan_datastore_db.sh
- paster datastore -c test-core.ini set-permissions | sudo -u postgres psql
- while ! grep "Started" $HOME/solr.log; do sleep 0.1; done
- ckan/bin/solr_init/create_core.sh
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- circleci-matrix:
parallel: true