-
Notifications
You must be signed in to change notification settings - Fork 2
/
shippable.yml
53 lines (41 loc) · 1.2 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
# Build Environment
build_environment: Ubuntu 14.04
# variables used for slack comunication
env:
global:
- PROJECT="reactnativebackend"
language: python
python:
- 3.4
# only build when certain Git branches are updated
branches:
only:
- master
before_install:
- shippable_retry sudo apt-get update
- shippable_retry sudo apt-get install -y python-dev
- shippable_retry sudo apt-get install -y postgresql-9.3 postgresql-contrib-9.3 postgresql-server-dev-9.3
- sudo echo "host all all localhost trust" > /etc/postgresql/9.3/main/pg_hba.conf
- sudo echo "local all all trust" >> /etc/postgresql/9.3/main/pg_hba.conf
- sudo service postgresql start
- psql -c 'create database milefriendmaintenance;' -U postgres
install:
# now install requirements
- pip install -r py-requirements/dev.txt
# configuration to run tests
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- git submodule init
- git submodule update
- ./scripts/get_static_validation.sh
# run test scripts
script:
- ./scripts/test_shippable_backend.sh
# Notification
notifications:
email:
recipients:
on_success: change
on_failure: change