]> git.r.bdr.sh - rbdr/lyricli/blob - .gitlab-ci.yml
2fa5994d1e37221e51fba4d818f7c892da435c76
[rbdr/lyricli] / .gitlab-ci.yml
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 - apt install -y ruby ruby-dev libsqlite3-dev
16 - gem install jazzy
17 - "./Scripts/install_sourcekitten.sh"
18 - "./Scripts/install_swiftlint.sh"
19
20 lint:
21 stage: lint
22 script:
23 - make lint
24
25 build:
26 stage: build
27 script:
28 - make build
29
30 document:
31 stage: document
32 script:
33 - make document
34 artifacts:
35 paths:
36 - docs
37
38 pages:
39 stage: deploy
40 script:
41 - mv docs public
42 artifacts:
43 paths:
44 - public