瀏覽代碼

Add a test job

Achilleas Pipinellis 9 年之前
父節點
當前提交
6f3ebcb689
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      .gitlab-ci.yml

+ 12 - 0
.gitlab-ci.yml

@@ -1,6 +1,18 @@
 image: ruby:2.3
 
+test:
+  stage: test
+  script:
+  - gem install jekyll
+  - jekyll build -d test
+  artifacts:
+    paths:
+    - test
+  except:
+  - master
+
 pages:
+  stage: deploy
   script:
   - gem install jekyll
   - jekyll build -d public