Created
April 21, 2020 15:49
-
-
Save gandroz/51b22efc451d2452d79117831b920233 to your computer and use it in GitHub Desktop.
buildspec yml file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
python: 3.8 | |
pre_build: | |
commands: | |
- apt-get install -y python3-venv | |
- python3.6 -m venv test_venv | |
- . test_venv/bin/activate | |
- pip install --upgrade pip | |
- pip install . | |
- pip install -r tests/requirements.txt | |
- rm -rf dspt | |
- mkdir test-reports | |
build: | |
commands: | |
- pytest | |
--html=test-reports/report.html | |
--self-contained-html | |
-s | |
-v | |
--cov=dspt | |
--cov-report=html:test-reports/coverage | |
--junitxml=test-reports/junit.xml | |
--log-file=test-reports/logs.txt | |
tests | |
post_build: | |
commands: | |
- echo Build completed on `date` | |
reports: | |
coverage: | |
files: | |
- "coverage/*" | |
base-directory: 'test-reports' | |
discard-paths: yes | |
report: | |
files: | |
- 'junit.xml' | |
- 'report.html' | |
- 'assets/*' | |
base-directory: 'test-reports' | |
discard-paths: yes | |
file-format: JunitXml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment