-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
52 lines (50 loc) · 1.32 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
49
50
51
52
version: 0.2
phases:
install:
runtime-versions:
python: 3.8
pre_build:
commands:
- pip3 install --upgrade pip
- aws codeartifact login --tool twine --repository personal-repo --domain personal --domain-owner 972734064061
- pip3 install -r requirements.txt
- pip3 install .
- rm -rf dspt
- mkdir test-reports
build:
commands:
- pytest
--html=test-reports/report.html
--self-contained-html
-s
-v
--cov
--cov=dspt
--cov-report=html:test-reports/coverage
--cov-report=xml:test-reports/coverage.xml
--junitxml=test-reports/junit.xml
--log-file=test-reports/logs.txt
tests
- cd docs && make clean html && cd -
- aws s3 sync ./docs/_build/html s3://superbucket42/package-docs/l2-orderbook-tops/latest
- python setup.py sdist
- ls dist/
- twine upload --repository codeartifact dist/*
post_build:
commands:
- echo Build completed on `date`
reports:
CoverageReports:
files:
- 'coverage.xml'
discard-paths: yes
file-format: 'COBERTURAXML'
base-directory: 'test-reports'
report:
files:
- 'junit.xml'
- 'report.html'
- 'assets/*'
base-directory: 'test-reports'
discard-paths: yes
file-format: JunitXml