-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
68 lines (63 loc) · 1.67 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
image: danger89/gtk3-docker-cmake-ninja:4.2
stages:
- test
- build
static_code_analysis:
stage: test
script:
- cppcheck --version
- ./scripts/cpp_check.sh
code_style_guidelines:
stage: test
script:
- clang-format --version
- ./scripts/check_format.sh
# Build WineGUI + Doxygen
test-build:
stage: build
only:
- merge_requests
- main
script: ./scripts/build_prod.sh
artifacts:
name: "Packages + Documentation"
expire_in: 1 month
paths:
- doc/doxygen/
- build_prod/WineGUI-*.deb
- build_prod/WineGUI-*.rpm
- build_prod/WineGUI-*.tar.gz
# Build Prd & Deploy new release on a new tag (deployment job),
# which includes the deb, rpm and tar.gz file as well as the latest release txt file.
# And will automatically create asset links to the existing GitLab release towards the deployment URL target files.
build-and-deploy:
stage: build
rules:
- if: '$CI_COMMIT_TAG && $CI_PROJECT_NAMESPACE == "melroy"'
script:
- ./scripts/build_prod.sh
- export APP_VERSION=${CI_COMMIT_TAG}
- ./scripts/create_source_archive.sh
- ./scripts/create_release_links.sh
- ./scripts/create_latest_release_file.sh
environment:
name: production
url: https://winegui.melroy.org/downloads
artifacts:
name: "Packages + Documentation"
expire_in: 3 months
paths:
- doc/doxygen/
- release/
- build_prod/WineGUI-*.deb
- build_prod/WineGUI-*.rpm
- build_prod/WineGUI-*.tar.gz
- build_prod/WineGUI-Source-*.tar.gz
#unit_test:
# stage: test
# script: ./build_prod/bin/runTests
# cache:
# key: "$CI_PIPELINE_ID"
# policy: pull
# paths:
# - build_prod/bin/