-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
53 lines (46 loc) · 2.05 KB
/
.gitlab-ci.yml
File metadata and controls
53 lines (46 loc) · 2.05 KB
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
# -*- mode: yaml; coding: utf-8 -*-
include:
- project: qs/spin/spin_plugin_common
ref: v3.0.0
file: ci/.gitlab-ci.yml
# ==============================================================================
# The following customizations are required to ensure pip>=24 is installed,
# which is required for installing extras with constraints (see
# https://code.contact.de/qs/spin/cs.spin/-/issues/177).
variables:
UV_LINK_MODE: copy
test_linux:
before_script:
- python3 -m pip install -U pip
- python3 -m pip install -r requirements-dev.txt
test_windows:
before_script:
- python -m venv venv
- venv\Scripts\activate.ps1
- venv\Scripts\python.exe -m pip install -U pip
- pip install -r requirements-dev.txt
triggered_integration_tests_linux:
before_script:
- apt update
- apt install -y jq
# retrieve the Job ID of the wheel job to download the artifacts
- |
export WHEEL_JOB_ID=$( \
curl -s \
"${CI_API_V4_URL}/projects/1065/pipelines/${PARENT_PIPELINE_ID}/jobs?scope=success" \
| jq -S '.[] | select (.name == "wheel") | {id}' | jq -rj '.[]' \
)
- curl -O ${CI_API_V4_URL}/projects/1065/jobs/${WHEEL_JOB_ID}/artifacts.zip
- unzip artifacts.zip "dist/*"
- python3 -m pip install -U pip
- pip install dist/csspin-*.whl -r requirements-dev.txt
triggered_integration_tests_windows:
before_script:
# retrieve the Job ID of the wheel job to download the artifacts
- $WHEEL_JOB_ID=(curl -s "${CI_API_V4_URL}/projects/1065/pipelines/${PARENT_PIPELINE_ID}/jobs?scope=success" | ConvertFrom-Json | Where-Object {$_.name -eq "wheel"}).id
- curl -O ${CI_API_V4_URL}/projects/1065/jobs/$WHEEL_JOB_ID/artifacts.zip
- Expand-Archive artifacts.zip .
- python -m venv venv
- venv\Scripts\activate.ps1
- venv\Scripts\python.exe -m pip install -U pip
- pip install ("dist\" + (Get-ChildItem dist\csspin-*.whl).name) -r requirements-dev.txt