-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
85 lines (66 loc) · 2.02 KB
/
.gitlab-ci.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
include:
- project: 'acc-co/devops/python/acc-py-devtools'
file: 'acc_py_devtools/templates/gitlab-ci/python.yml'
variables:
project_name: pjlsa
# A push of the source distribution to the acc-py PyPI, only on git tag.
release_sdist:
extends: .acc_py_release_sdist
.base_dev_test:
variables:
env_spec: INSERT_CONDA_REQUIREMENTS
image: continuumio/miniconda3
script:
- conda create -n test_env --yes --quiet -c conda-forge pip $env_spec
- source activate test_env
- mkdir not-the-source-dir && cd not-the-source-dir
- pip install -e ..
- python -c "import pjlsa; print(pjlsa.__version__)"
- pip install -e ..[test]
- pytest ../pjlsa ../tests
# We only really need a single dev test to ensure that we can actually use
# PjLSA in development mode.
tests_dev_py37_jdk11_jp12:
extends:
.base_dev_test
variables:
env_spec: python=3.7 openjdk=11 JPype1=1.2.1
.base_wheel_test:
image: continuumio/miniconda3
variables:
env_spec: INSERT_CONDA_REQUIREMENTS
script:
- conda create -n py37 --yes --quiet -c conda-forge pip $env_spec
- source activate py37
- mkdir not-the-source-dir && cd not-the-source-dir
- pip install "$(ls ../wheelhouse/*.whl)"
# Check that we can actually use PjLSA without the test dependencies.
- python -c "import pjlsa; print(pjlsa.__version__)"
# Now install the test dependencies.
- pip install "$(ls ../wheelhouse/*.whl)[test]"
- pytest ../tests
tests_whl_py37_jdk8_jp12:
extends:
.base_wheel_test
variables:
env_spec: python=3.7 openjdk=8 JPype1=1.2.1
tests_whl_py37_jdk11_jp12:
extends:
.base_wheel_test
variables:
env_spec: python=3.7 openjdk=11 JPype1=1.2.1
tests_whl_py39_jdk8_jp12:
extends:
.base_wheel_test
variables:
env_spec: python=3.9 openjdk=8 JPype1=1.2.1
tests_whl_py39_jdk11_jp12:
extends:
.base_wheel_test
variables:
env_spec: python=3.9 openjdk=11 JPype1=1.2.1
build_wheel:
extends:
- .acc_py_build_wheel
release_wheel:
extends: .acc_py_release_wheel