macroblog.rs @ c434c45380fc6926a5525f97cc4df98a9b3cda94

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