forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
45 lines (43 loc) · 1.24 KB
/
circle.yml
File metadata and controls
45 lines (43 loc) · 1.24 KB
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
machine:
python:
version: 3.6.1
dependencies:
cache_directories:
# relative to the build directory
- "client/node_modules"
- "env"
pre:
- |
# Install latest LTS node
sudo apt-get update
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install nodejs libgeos-c1 libgeos-dev # Required for shapely
node --version
override:
- |
# Install NPM packages and build client from gulpfile
cd client
npm install
./node_modules/.bin/gulp build
cd ..
# Install Python dependencies
virtualenv env
env/bin/pip install --upgrade pip
env/bin/pip install -r requirements.txt
test:
override:
- |
# JS Unit Tests
cd tests/client
../../client/node_modules/.bin/karma start ./karma.conf.js \
--single-run --browsers PhantomJS --reporters junit
- |
# Run Python tests
env/bin/nosetests ./tests/server --with-xunit \
--xunit-file $CIRCLE_TEST_REPORTS/unitresults.xml \
--with-coverage --cover-erase --cover-package=./server
env/bin/coverage xml -o $CIRCLE_TEST_REPORTS/coverage.xml
post:
- |
chmod +x ./devops/ci/circleci_deploy.sh
./devops/ci/circleci_deploy.sh