-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
62 lines (55 loc) · 1.4 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
# SPDX-FileCopyrightText: © 2019, 2024 Alexandros Theodotou <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- setup
- build
- test
- deploy
default:
cache:
# this number must be bumped every time the dependencies are updated
- key: configured-cache-3
paths:
- venv
- key: $CI_COMMIT_TIMESTAMP
paths:
- rendered
tags:
- archlinux
before_script:
- source ./venv/bin/activate
configure:
stage: setup
script:
- python3 -m pip install -r requirements.txt
before_script:
- python3 -m venv venv
- source ./venv/bin/activate
build:
stage: build
script:
- echo "export VERIFY_TRIAL_PACKAGE_URLS=YES" >> .credentials
- echo "export GET_VERSION=YES" >> .credentials
- make
#test:
#stage: test
#script:
#- make locale
#- make
#- linkchecker --ignore-url .*team.html --ignore-url .*join-us.html rendered
deploy-site:
stage: deploy
only:
- master
- tags
script:
- rsync -av --no-group --omit-dir-times rendered/* [email protected]:$REMOTE_WWW_SITE_UPLOAD_PATH
before_script:
- eval $(ssh-agent -s)
#- ssh-add <(echo "$SSH_PRIVATE_KEY")
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- source ./venv/bin/activate