macroblog.rs @ 2bf274de3fe814e3729deb9ca242df58f8936a49

 1before_script:
 2    - apt-get update -qy
 3    - apt-get install -y ruby-dev
 4    - gem install dpl
 5
 6stages:
 7    - test
 8    - production
 9
10test:
11    image: rust:latest
12    stage: test
13    script:
14        - cargo install cargo2junit
15        - cargo test -- -Z unstable-options --format json --report-time | cargo2junit > results.xml
16    only:
17        - master
18    artifacts:
19        reports:
20            junit: results.xml
21
22production:
23    stage: production
24    image: ruby:latest
25    needs:
26      - test
27    script:
28        - gem install faraday -v 1.8.0
29        - dpl --provider=heroku --app=$HEROKU_APP --api-key=$HEROKU_API_KEY
30    only:
31        - master