diff options
| author | Ben Beltran <ben@nsovocal.com> | 2019-05-13 22:03:51 +0200 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2019-05-13 22:03:51 +0200 |
| commit | 3f746cc0beb5756e706e289ab2b92b43de928f74 (patch) | |
| tree | 3546fe0f16482b46c91af6db04231be5ef369271 /.gitlab-ci.yml | |
| parent | 1a8c14fd7973468379f8926069b4b0698d9c4ac8 (diff) | |
Remove travis config, add gitlab CI
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e55b711 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,43 @@ +image: swift:5.0.1 + +stages: + - lint + - build + - document + - deploy + +cache: + key: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA} + paths: + - .build/ + +before_script: + - gem install jazzy + - "./Scripts/install_sourcekitten.sh" + - "./Scripts/install_swiftlint.sh" + +lint: + stage: lint + script: + - make lint + +build: + stage: build + script: + - make build + +document: + stage: document + script: + - make document + artifacts: + paths: + - docs + +pages: + stage: deploy + script: + - mv docs public + artifacts: + paths: + - public |