-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
110 lines (102 loc) · 2.65 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Author: Cavelle Benjamin
variables:
DOMAIN: "thecb4.io"
EMAIL: "[email protected]"
stages:
- build-test
- docs
swift_5_3_focal:
image:
name: swift:5.3-focal
entrypoint: [""]
stage: build-test
script:
- swift test --enable-test-discovery --enable-code-coverage --filter "^(?!.*MacOS).*$"
only:
- main
swift_5_3_bionic:
image:
name: swift:5.2-bionic
entrypoint: [""]
stage: build-test
script:
- swift test --enable-test-discovery --enable-code-coverage --filter "^(?!.*MacOS).*$"
only:
- main
swift_5_2_focal:
image:
name: swift:5.2-focal
entrypoint: [""]
stage: build-test
script:
- swift test --enable-test-discovery --enable-code-coverage --filter "^(?!.*MacOS).*$"
only:
- main
swift_5_2_bionic:
image:
name: swift:5.2-bionic
entrypoint: [""]
stage: build-test
script:
- swift test --enable-test-discovery --enable-code-coverage --filter "^(?!.*MacOS).*$"
only:
- main
pages:
image:
name: swift:5.3-focal
stage: docs
dependencies:
- swift_5_3_focal
- swift_5_3_bionic
- swift_5_2_focal
- swift_5_2_bionic
before_script:
- export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
- apt-get -q update
- apt-get -q install -y build-essential libxml2-dev
script:
- export WORKDIR=$PWD
- git clone https://github.com/SwiftDocOrg/swift-doc /tmp/swift-doc
- cd /tmp/swift-doc
- make install
- cd $WORKDIR
#- swift doc ./Sources --output docs/ --type html --module-name blanket --author "Cavelle Benjamin" --author-url https://thecb4.io --twitter-handle _thecb4 --git-repository https://github.com/thecb4/blanket
- swift doc generate ./Sources --module-name Blanket --output docs --format html
- mkdir public
- mkdir public/Resources
- cp docs/index.html public/index.html
- cp Resources/logo.png public/Resources/logo.png
artifacts:
paths:
- public
only:
- main
# wiki:
# image:
# name: swift:5.1.4-xenial
# stage: docs
# dependencies:
# - spm_514_xenial
# script:
# - export WORKDIR=$PWD
# - git clone https://github.com/yonaskolb/Mint.git /tmp/Mint
# - cd /tmp/Mint
# - swift run mint install yonaskolb/mint
# - cd $WORKDIR
# - mint install thecb4/swift-doc@main
# - git rm --cached wiki
# - git add wiki
# - cd wiki
# - rm -rf **/*.md
# - cd ..
# - swift doc ./Sources --output wiki
# - git submodule foreach --recursive deinit -f --all -- wiki
# - git add --all -f
# - cd wiki
# - git commit -m "Update docs"
# - git push origin main
# artifacts:
# paths:
# - wiki
# only:
# - main