]> git.r.bdr.sh - rbdr/lyricli/commitdiff
Remove travis config, add gitlab CI
authorBen Beltran <redacted>
Mon, 13 May 2019 20:03:51 +0000 (22:03 +0200)
committerBen Beltran <redacted>
Mon, 13 May 2019 20:03:51 +0000 (22:03 +0200)
.gitlab-ci.yml [new file with mode: 0644]
.travis.yml [deleted file]
README.md

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..e55b711
--- /dev/null
@@ -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
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index 46250e5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-language:
-  - swift
-
-osx_image: xcode8.3
-
-install:
-  - gem install jazzy
-  - "./Scripts/install_sourcekitten.sh"
-  - "./Scripts/install_swiftlint.sh"
-
-script:
-  - make lint
-  - make build
-
-before_deploy:
-  - make document
-
-deploy:
-  provider: pages
-  skip_cleanup: true
-  github_token: "$GITHUB_TOKEN"
-  local_dir: docs
-  on:
-    branch: master
-
-env:
-  global:
-    secure: EyOzJFSGY2ifBVqnQz7Xc0sDcg9maLb7VDKWIC2+1n2RsMHGptsxDfJf9r/bOc2kJN9mCzw19eA3XTkypeHKgIgPZ+boLPTDqiiNcD+0iVkYxqw/Q0v5et1+pJaOUo93cKfl2WLWXvISU1MYuzbjGwmnjPDUmujTwGZH1SFvhOKynqx9V/PiL4ZF+CurU2far+diLDhJXUPT4mDV6lDfiALUBvfj50AplM928Vwc6xr71SFii4fE+1GGGGI23ZyXmhnYIJBfQ/9d2wzW6szSRz+q0Gq8jQFJ2cZmBQPnfPY6/xARkDIf5H55HIxLg8pqA7Yn+WDT6/a8uoFLY6OzI8B/TTZ/pX4LXhkK0gbmXeeigRjxN3Dcsb++n9e5+3/Bq0y/Vm+Ufy+TtEvExvU6vdzDu8YZQaE0T2Loyqaw3BQBMoCunv4i7z0crXTLyNYNuc3zDGDmjkR3laxX8lcEZ85zTRTuYqxmvQxkxWUHKYQOvGy7SfkD1xc73f1XvCqpx45utZX0U/OzIxRflWFNy4mlgLvo23h5T0b44LGBBBWEVkjt5YduOuSo9L1wtOrADcDYyxSciIby2SHd4B2fGOb059KyCIUcX/qgOS6FJlmPeC963NCAuZB6DyscaoT6DrJto9nuZW2wNYdo7dvCC2E4ZqHnRPl2zux/RTmeuCU=
index 0ee2657990a852eaa85c837757e8027ccc8f2f82..57dff9a286981385065aea2ad5f9a0529002e395 100644 (file)
--- a/README.md
+++ b/README.md
@@ -78,8 +78,6 @@ tests.
 make test
 ```
 
-[![Build Status](https://travis-ci.org/lyricli-app/lyricli.svg?branch=master)](https://travis-ci.org/lyricli-app/lyricli)
-
 [swiftlint]: https://github.com/realm/SwiftLint
 [jazzy]: https://github.com/realm/jazzy
 [sourcekitten]: https://github.com/jpsim/SourceKitten