forked from Scifabric/pybossa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
50 lines (50 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
version: 2
jobs:
build:
working_directory: ~/circulate
docker:
- image: scifabric/python3.8-ldap
environment:
FLASK_CONFIG: testing
TEST_DATABASE_URL: postgresql://rtester:rtester@localhost/pybossa_test?sslmode=disable
- image: postgres:9.5.0
environment:
POSTGRES_USER: rtester
POSTGRES_DB: pybossa_test
POSTGRES_PASSWORD: "rtester"
- image: redis
- image: s7anley/redis-sentinel-docker
environment:
MASTER: localhost:6379
MASTER_NAME: mymaster
steps:
- checkout
- run:
name: "Get PYBOSSA and PYBOSSA.JS installed"
command: |
git submodule sync --recursive && git submodule update --recursive --init
- run:
name: Install Python deps
command: |
pip install -r requirements.txt
- run:
name: "Add PYBOSSA i18n"
command: |
cd pybossa && ln -s themes/default/translations && cd ..
- run:
name: "Test PYBOSSA"
command: |
nosetests -x test/
- run:
name: "Install coveralls"
command: |
pip install coveralls
- run:
name: "Send to coveralls"
command: |
coveralls
- store_artifacts:
path: test-reports/
destination: tr1
- store_test_results:
path: test-reports/