forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
61 lines (50 loc) · 2.1 KB
/
shippable.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
51
52
53
54
55
56
57
58
59
60
61
# language setting
language: python
# version numbers
python:
- "3.5"
env:
- secure: FgpDKVKD1xtPHXg9enOJRbE0HIGzj93B9+IMvXFroosA4mFNO/W2cvSGhujU6FMl+9wNqAZmCJV6HGLx02uPvuEkNS90n3fAOR/pJMmKbhxoGbVN/QDAPdKHtEs4nGimzDaIPg4i77pym9lgxMa0PZQGUFNMFmJtdFvDCfStEw6oPME7Gqxni2dm2DGr0w00JU1QZBeYx0SKtBv53x+ehyLOAh5uDB52A6sCmWxWgc6ARlA7pkWc/1al2elhMsAgdmyIAjP9niGXqBEdNHSIBrwI6T2pqaZ5YAjKOUHDF2XRkXVVMzTf8GLdaJN2Xa0MtPZQW960ZktQVN6VbPjyKw==
build:
# Use the python 3.6 docker container to build the application
pre_ci_boot:
image_name: python
image_tag: 3.6
pull: true
options: "-e HOME=/root --privileged=True"
ci:
# Install latest LTS node
- apt-get update
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- apt-get install nodejs
- node --version
# Install NPM packages and build client from gulpfile
- cd client
- npm install
- ./node_modules/.bin/gulp build
- cd ..
# Required to display test results in Shippable GUI
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
# JS Unit Tests
- cd tests/client
- ../../client/node_modules/.bin/karma start ./karma.conf.js --single-run --browsers PhantomJS --reporters junit
- cd ../..
# Install Python dependencies
- python --version
- apt-get install -y libgeos-c1 libgeos-dev # Required for shapely
- pip install -r requirements.txt
# Run Python tests
- nosetests ./tests/server --with-xunit --xunit-file ./shippable/testresults/unitresults.xml --with-coverage --cover-erase --cover-package=./server
- coverage xml -o shippable/codecoverage/coverage.xml
on_success:
# Run deploy script to manage deploy to appropriate environment
- . ./devops/ci/shippable_deploy.sh
integrations:
notifications:
- integrationName: email
type: email
recipients: