-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathREADME.repo
73 lines (58 loc) · 2.03 KB
/
README.repo
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
62
63
64
65
66
67
68
69
70
71
72
Instructions for moving disturbance from Ledger into its own repository
_______________________________________________________________________
1. Merge the code into it own repository
Delete all unrelated code including ledger
2. Add ledger to requirements.txt
git+https://github.com/dbca-wa/ledger#egg=ledger
2. Make changes to your settings.py file
import os
import confy
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
confy.read_environment_file(BASE_DIR+"/.env")
os.environ.setdefault("BASE_DIR", BASE_DIR)
STATIC_ROOT=os.path.join(BASE_DIR, 'staticfiles')
4. Make changes to your .travis.yml so that merges are tested in travis-ci before merges from forks are merged into the main master repository
sudo: false
language: python
cache: pip
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.6"
services:
- postgresql
branches:
only:
- master
- disturbance_v3
env:
global:
- SECRET_KEY=SecretKeyForTravis
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- PRODUCTION_EMAIL=False
- EMAIL_INSTANCE="TEST"
- NON_PROD_EMAIL="[email protected]"
- BPAY_ALLOWED=True
- EMAIL_FROM="[email protected]"
sudo: true
install:
- sudo apt-get install postgresql-9.6-postgis-2.4 -y -q
- pip install pip --upgrade
- pip install -r requirements.txt
before_script:
- touch .env
- psql -c 'create database travis_ci_test;' -U postgres
- python manage_ds.py migrate --noinput
script:
- COVERAGE_FILE=.coverage_ledger coverage run --source="." manage_ds.py test --noinput ledger
- COVERAGE_FILE=.coverage_ds coverage run --source="." manage_ds.py test --noinput disturbance
- coverage combine .coverage_ledger .coverage_ds
after_success:
- coveralls
5. Update README.md
6. Update .env settings (ensure PROD is False for UAT and DEV configs)
7. Update npm security vulnerabilities, eg.
npm install [email protected] --save
npm install
npm run build