@@ -8,8 +8,8 @@ variables:
88
99cache :
1010 # enable per-job and per-branch caching
11- - key :
12- files :
11+ - key :
12+ files :
1313 - ./requirements.txt
1414 prefix : " $CI_JOB_NAME"
1515 paths :
@@ -25,14 +25,14 @@ before_script:
2525 - docker info || echo "no docker-command found" # Print out docker version for debugging
2626 - echo CI_PROJECT_NAMESPACE = $CI_PROJECT_NAMESPACE
2727 - echo CI_PROJECT_ROOT_NAMESPACE = $CI_PROJECT_ROOT_NAMESPACE
28- - python -V # Print out python version for debugging
28+ - python -V # Print out python version for debugging
2929 - apt update
3030 - apt install -y libusb-1.0-0-dev libudev-dev # usb-support in hidapi
3131 # https://github.com/python-babel/babel/issues/990#issuecomment-1760326334
3232 - rm -f /etc/localtime
3333 - ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime
34- # This doesn't get cached in gitlab but we don't need it anyway for now:
35- # - ./tests/install_noded.sh --debug --elements compile
34+ # This doesn't get cached in gitlab but we don't need it anyway for now:
35+ # - ./tests/install_noded.sh --debug --elements compile
3636 - pip3 install --upgrade virtualenv
3737 - virtualenv --python=python3 .env
3838 - source .env/bin/activate
@@ -48,20 +48,20 @@ check:
4848# So effectively, gitlab is currently only used for releasing.
4949
5050.test :
51- stage : testing
52- # We assume here that people who want to get code into the master-branch are
53- # relying on PRs and people who are working on gitlab-forks are working
54- # on CI which probably want fast feedback on the releasing-jobs
55- # and therefore skip the test-job
56- # tem deactivated as it did not work as expected
57- # only:
58- # - $CI_PROJECT_ROOT_NAMESPACE =~ "cryptoadvance"
59- script :
60- - pip3 install -r requirements.txt
61- - pip3 install -e .
62- - pip3 install -e ".[test]"
63- - python3 setup.py install # compiles babel stuff as well (might make pip install obsolete)
64- - py.test --cov-report term --cov cryptoadvance
51+ stage : testing
52+ # We assume here that people who want to get code into the master-branch are
53+ # relying on PRs and people who are working on gitlab-forks are working
54+ # on CI which probably want fast feedback on the releasing-jobs
55+ # and therefore skip the test-job
56+ # tem deactivated as it did not work as expected
57+ # only:
58+ # - $CI_PROJECT_ROOT_NAMESPACE =~ "cryptoadvance"
59+ script :
60+ - pip3 install -r requirements.txt
61+ - pip3 install -e .
62+ - pip3 install -e ".[test]"
63+ - python3 setup.py install # compiles babel stuff as well (might make pip install obsolete)
64+ - py.test --cov-report term --cov cryptoadvance
6565
6666.test-cypress :
6767 image : registry.gitlab.com/cryptoadvance/specter-desktop/cypress-python-jammy:v9.7.0
8383
8484release_pip :
8585 stage : releasing
86- only :
86+ only :
8787 - tags
8888 script :
8989 - pip3 install -e .
@@ -112,10 +112,10 @@ release_pip:
112112
113113release_binary_windows :
114114 stage : releasing
115- only :
115+ only :
116116 - tags
117117 variables :
118- GIT_DEPTH : 0 # Disable shallow clone to get all Git history
118+ GIT_DEPTH : 0 # Disable shallow clone to get all Git history
119119 tags :
120120 - windows
121121 before_script :
@@ -125,13 +125,13 @@ release_binary_windows:
125125 - pip install virtualenv
126126 - virtualenv --python=python3 .env
127127 - .\.env\Scripts\activate
128- - pip3 install -e ".[test]"
129-
128+ - pip3 install -e ".[test]"
129+
130130 script :
131131 # This script won't execute if the script before that fails
132132 # No need to check the version-scheme again
133133
134- - echo "Releasing for ${CI_PROJECT_ROOT_NAMESPACE}"
134+ - echo "Releasing for ${CI_PROJECT_ROOT_NAMESPACE}"
135135 - .\pyinstaller\build-win-ci.bat $CI_COMMIT_TAG
136136 - python ./utils/github.py upload ./pyinstaller/release/specterd-$CI_COMMIT_TAG-win64.zip
137137 - cd ./pyinstaller/release
@@ -145,21 +145,21 @@ release_binary_windows:
145145 expire_in : 1 day
146146 cache :
147147 key :
148- files :
149- - ./pyinstaller/electron/package-lock.json
150- prefix : $CI_JOB_NAME
148+ files :
149+ - ./pyinstaller/electron/package-lock.json
150+ prefix : $CI_JOB_NAME
151151 paths :
152152 - ./pyinstaller/electron/node_modules
153153
154154release_electron_linux_windows :
155155 image : registry.gitlab.com/cryptoadvance/specter-desktop/electron-builder:latest
156156 stage : releasing
157- only :
157+ only :
158158 - tags
159159 needs :
160160 - release_binary_windows
161161 before_script :
162- - python3 -V # Print out python version for debugging
162+ - python3 -V # Print out python version for debugging
163163 - apt update
164164 - apt install -y unzip libusb-1.0-0-dev libudev-dev # usb-support in hidapi
165165 - pip3 install virtualenv
@@ -184,17 +184,17 @@ release_electron_linux_windows:
184184 - ./utils/artifact_signer.sh sign --artifact ./release/SHA256SUMS-win
185185 - ./utils/artifact_signer.sh sign --artifact ./release/SHA256SUMS-linux
186186 - python3 ./utils/github.py upload ./release/Specter-Setup-${CI_COMMIT_TAG}.exe
187- - python3 ./utils/github.py upload ./release/specterd-${CI_COMMIT_TAG}-x86_64-linux-gnu.zip
188- - python3 ./utils/github.py upload ./release/specter_desktop-${CI_COMMIT_TAG}-x86_64-linux-gnu.tar.gz
187+ - python3 ./utils/github.py upload ./release/specterd-${CI_COMMIT_TAG}-x86_64-linux-gnu.zip
188+ - python3 ./utils/github.py upload ./release/specter_desktop-${CI_COMMIT_TAG}-x86_64-linux-gnu.tar.gz
189189 # - python3 ../utils/github.py upload ./release/SHA256SUMS-linux
190190 # - python3 ../utils/github.py upload ./release/SHA256SUMS-linux.asc
191191 # - python3 ../utils/github.py upload ./release/SHA256SUMS-win
192192 # - python3 ../utils/github.py upload ./release/SHA256SUMS-win.asc
193193 cache :
194194 key :
195- files :
196- - ./pyinstaller/electron/package-lock.json
197- prefix : $CI_JOB_NAME
195+ files :
196+ - ./pyinstaller/electron/package-lock.json
197+ prefix : $CI_JOB_NAME
198198 paths :
199199 - ./pyinstaller/electron/node_modules
200200
@@ -212,28 +212,28 @@ release_electron_linux_windows:
212212
213213release_signatures :
214214 stage : post_releasing
215- only :
215+ only :
216216 - tags
217217 before_script :
218- - python -V # Print out python version for debugging
218+ - python -V # Print out python version for debugging
219219 - pip3 install --upgrade virtualenv
220220 - virtualenv --python=python3 .env
221221 - source .env/bin/activate
222222 - pip3 install -e ".[test]"
223223 - ./utils/artifact_signer.sh init # prepare .gnupg
224224 script :
225- - python3 -m utils.release_helper download # downloads the job-artifacts from gitlab
226- - python3 -m utils.release_helper downloadgithub # downloads additional artifacts from github (if not there and is they have SHA256SUMS-something)
227- - python3 -m utils.release_helper checksigs # checks the signatures of all SHA256SUMM*.asc files
228- - python3 -m utils.release_helper checkhashes # checks all SHA256SUM* files (might modify files on the fly due to windows line endings)
229- - python3 -m utils.release_helper create # creates a SHA256SUM
225+ - python3 -m utils.release_helper download # downloads the job-artifacts from gitlab
226+ - python3 -m utils.release_helper downloadgithub # downloads additional artifacts from github (if not there and is they have SHA256SUMS-something)
227+ - python3 -m utils.release_helper checksigs # checks the signatures of all SHA256SUMM*.asc files
228+ - python3 -m utils.release_helper checkhashes # checks all SHA256SUM* files (might modify files on the fly due to windows line endings)
229+ - python3 -m utils.release_helper create # creates a SHA256SUM
230230 - ./utils/artifact_signer.sh sign --artifact ./signing_dir/SHA256SUMS # Signs the SHA256SUM
231- - python3 -m utils.release_helper upload_shasums # uploads SHA256SUMS to github
231+ - python3 -m utils.release_helper upload_shasums # uploads SHA256SUMS to github
232232 - python3 -m utils.release_helper upload_shasumssig # uploads SHA256SUMS.asc to github
233233
234234release_docker :
235235 stage : post_releasing
236- only :
236+ only :
237237 - tags
238238 before_script :
239239 - echo "Triggering Docker Release"
@@ -257,6 +257,8 @@ update_github:
257257 stage : post_releasing
258258 only :
259259 - tags
260+ needs :
261+ - release_signatures
260262 before_script :
261263 # write access to [email protected] :swan-bitcoin/specter-static.git 262264 - source ./utils/prepare_for_git_write.sh "$SSH_SPECTERSTATIC_DEPLOY_KEY"
@@ -268,6 +270,8 @@ update_webpage:
268270 stage : post_releasing
269271 only :
270272 - tags
273+ needs :
274+ - release_signatures
271275 before_script :
272276 # write access to [email protected] :swan-bitcoin/specter-static.git 273277 - source ./utils/prepare_for_git_write.sh "$SSH_SPECTERSTATIC_DEPLOY_KEY"
0 commit comments