X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli/blobdiff_plain/1a8c14fd7973468379f8926069b4b0698d9c4ac8..3f746cc0beb5756e706e289ab2b92b43de928f74:/.gitlab-ci.yml 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