This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.cirrus.yml
55 lines (54 loc) · 1.75 KB
/
.cirrus.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
task:
container:
image: python:latest
use_compute_credits: ($CIRRUS_BRANCH == 'master' && $CIRRUS_PR == '') || $CIRRUS_TAG != ''
auto_cancellation: true
Python_modules_cache:
folder: /usr/local/lib/python3.8/site-packages
fingerprint_script:
- echo $OS $PYTHON_VERSION
- cat requirements-dev.txt
populate_script: python3 -m pip install --upgrade -r requirements-dev.txt
Install_Beta_Build_script:
- python3 -m pip install .
Build_script: make dist
matrix:
- name: Unit Tests
script: python3 -m xmlrunner tests
always:
unittest_results_artifacts:
path: ./*.xml
format: junit
type: text/xml
- env:
TWINE_USERNAME: ENCRYPTED[174042b48782072dfd0c112ac176d000b1f4753424d0781a7d5a9fb8a50f14cdf54b2fa9b340ba1c5c4cb017a979d956]
TWINE_PASSWORD: ENCRYPTED[00e22066a3e9d3cfde8533ab01441d876b42ec46e80a1c673c46b94f771728d6aac8382d0f1b8366fb3261fd3145ed58]
name: Deploy
only_if: $CIRRUS_TAG != ''
depends_on:
- Unit Tests
script: python3 -m twine upload --username $TWINE_USERNAME --password $TWINE_PASSWORD dist/*
build_artifacts:
path: dist/*.*
on_failure:
on_failure_script: |
echo $PYTHON_VERSION
python3 -m pip list
python3 -m pip check
before_cache_script: |
rm -rf /tmp/cirrus-ci-build/area4.dist-info
python3 -m pip uninstall --yes area4
task:
name: Documentation Tests
container:
image: python:latest
use_compute_credits: true
auto_cancellation: true
Download_Sphinx_script:
- python3 -m pip install --upgrade -r requirements-dev.txt
Install_Library_script: python3 -m pip install --upgrade .
script:
- cd ./docs/
- make dirhtml
build_artifacts:
path: docs/_build/**/**