diff options
| author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-05-08 21:58:37 +0200 | 
|---|---|---|
| committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-05-08 21:58:37 +0200 | 
| commit | 00229809fbb412342f76b503c7745f67090c5813 (patch) | |
| tree | fa205b271407e606d09138a8698a00e10eb38d1f /.gitlab-ci.yml | |
| parent | ea058a851098bf81cb645249e02d26a8c253db90 (diff) | |
| download | macroblog.rs-00229809fbb412342f76b503c7745f67090c5813.tar.gz macroblog.rs-00229809fbb412342f76b503c7745f67090c5813.tar.bz2 macroblog.rs-00229809fbb412342f76b503c7745f67090c5813.zip | |
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.
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 14 | 
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 | 
