-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuildspec.yml
48 lines (46 loc) · 1.34 KB
/
buildspec.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
version: 0.2
phases:
install:
runtime-versions:
python: 3.7
pre_build:
commands:
- apt-get install -y python3
- python3 -m pip install virtualenv
- python3 -m venv test_venv
- . test_venv/bin/activate
- pip install --upgrade pip
- pip install -r transform_binary_payload/src-payload-decoders/python/requirements.txt
- rm -rf dspt
- rm -rf test-reports
- mkdir test-reports
build:
commands:
- pytest transform_binary_payload/src-payload-decoders/python/dragino_lbt1.py transform_binary_payload/src-payload-decoders/python/dragino_lht65.py
--html=test-reports/report.html
--self-contained-html
-s
-v
--cov=transform_binary_payload/src-payload-decoders/python
--cov-report=xml:test-reports/coverage/coverage.xml
--junitxml=test-reports/junit.xml
--log-file=test-reports/logs.txt
post_build:
commands:
- echo Build completed on `date`
reports:
coverage:
report-group-name-or-arn: coverage
files:
- "test-reports/coverage/coverage.xml"
file-format: "COBERTURAXML"
discard-paths: yes
unittest:
report-group-name-or-arn: unittesrt
files:
- "junit.xml"
- "report.html"
- "assets/*"
base-directory: "test-reports"
discard-paths: yes
file-format: JunitXml