aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 12003e91d5e52097ad7d82c92483fbf831351c0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
before_script:
    - apt-get update -qy
    - apt-get install -y ruby-dev
    - 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
    only:
        - master