From 00229809fbb412342f76b503c7745f67090c5813 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 8 May 2022 21:58:37 +0200 Subject: feat: Add testing report Add test report and make it a requiremnt for `production` stage. Also revert all changes from picocss file. It will be refactored and reduced after all the MVP is done. --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.3