]>
Commit | Line | Data |
---|---|---|
3f746cc0 BB |
1 | image: swift:5.0.1 |
2 | ||
3 | stages: | |
4 | - lint | |
5 | - build | |
6 | - document | |
7 | - deploy | |
8 | ||
9 | cache: | |
10 | key: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA} | |
11 | paths: | |
12 | - .build/ | |
13 | ||
14 | before_script: | |
15 | - gem install jazzy | |
16 | - "./Scripts/install_sourcekitten.sh" | |
17 | - "./Scripts/install_swiftlint.sh" | |
18 | ||
19 | lint: | |
20 | stage: lint | |
21 | script: | |
22 | - make lint | |
23 | ||
24 | build: | |
25 | stage: build | |
26 | script: | |
27 | - make build | |
28 | ||
29 | document: | |
30 | stage: document | |
31 | script: | |
32 | - make document | |
33 | artifacts: | |
34 | paths: | |
35 | - docs | |
36 | ||
37 | pages: | |
38 | stage: deploy | |
39 | script: | |
40 | - mv docs public | |
41 | artifacts: | |
42 | paths: | |
43 | - public |