Commit fbb3fcd

mo khan <mo.khan@gmail.com>
2019-08-23 17:21:29
add package job to release stage
1 parent 6d5a1a2
Changed files (1)
.gitlab-ci.yml
@@ -1,5 +1,9 @@
 image: ruby:2.6
 
+stages:
+  - test
+  - release
+
 before_script:
   - apt-get update && apt-get install -y locales
   - echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
@@ -7,9 +11,22 @@ before_script:
   - export LC_ALL=en_US.UTF-8
 
 rspec:
+  stage: test
   script:
     - bin/cibuild
 
 lint:
+  stage: test
   script:
     - bin/lint
+
+package:
+  stage: release
+  script:
+    - bin/setup
+    - bundle exec rake build
+  artifacts:
+    paths:
+      - pkg/
+    when:
+      - always