forked from mmmaly/chcemvediet
-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (67 loc) · 1.92 KB
/
main.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
62
63
64
65
66
67
name: Testing project
on: push
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 2.7.18
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install virtualenv gettext
- name: Run setup
run: |
CONFIGURATION=(
# Server mode: Local development mode with dummy email infrastructure.
"2"
# Mock libreoffice?
"y"
# Mock imagemagic?
"y"
# Mock abbyyocr11?
"y"
# Install requirements for unittesting?
"y"
# Server domain
"localhost:8000"
# Admin e-mail (default)
""
# Support e-mail (default)
""
# Inforequest unique e-mail (default)
""
# Default from e-mail (default)
""
# Obligee dummy e-mail
# Unique cache key prefix (default)
""
# Google Custom Search API key (default)
""
# Google reCaptcha public key (default)
""
# Google reCaptcha private key (default)
""
# Load datasheets / Neighbourhood dummy was omitted / Delete it?
"y"
# Load datasheets / Municipality dummy was omitted / Delete it?
"y"
# Load datasheets / District dummy was omitted / Delete it?
"y"
# Load datasheets / Region dummy was omitted / Delete it?
"y"
# Admin password
"admin"
# Google OAuth Client ID (default)
""
# Google OAuth Secret (default)
""
)
printf "%s\n" "${CONFIGURATION[@]}" | PYTHONUNBUFFERED=1 python setup.py
- name: Run tests
run: |
env/bin/python manage.py test