aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 74fd457..12003e9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,12 +4,26 @@ before_script:
- gem install dpl
stages:
+ - test
- production
+test:
+ image: rust:latest
+ stage: test
+ script:
+ - cargo install cargo2junit
+ - cargo test -- -Z unstable-options --format json --report-time | cargo2junit > results.xml
+ only:
+ - master
+ artifacts:
+ reports:
+ junit: results.xml
production:
stage: production
image: ruby:latest
+ needs:
+ - test
script:
- gem install faraday -v 1.8.0
- dpl --provider=heroku --app=$HEROKU_APP --api-key=$HEROKU_API_KEY