Browse Source

Add a test job

Achilleas Pipinellis 9 năm trước cách đây
mục cha
commit
6f3ebcb689
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      .gitlab-ci.yml

+ 12 - 0
.gitlab-ci.yml

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