-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
47 lines (43 loc) · 784 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
47 lines (43 loc) · 784 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
variables:
GIT_STRATEGY: clone
before_script:
- chmod +x ./gradlew
build:
stage: build
tags:
- dalfcs_gitlab_docker_ci
image: gradle:alpine
script: ./gradlew assemble
only:
refs:
- develop
test:
stage: test
tags:
- dalfcs_gitlab_docker_ci
image: gradle:alpine
script:
- ./gradlew check
- bundle install
- bundle exec rspec --format progress --format RspecJunitFormatter --out rspec.xml
artifacts:
when: always
paths:
- rspec.xml
reports:
junit: rspec.xml
only:
refs:
- develop
deploy:
stage: deploy
tags:
- dalfcs_gitlab_docker_ci
image: ruby:2.6
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_TESTAPP_NAME --api-key=$HEROKU_API_KEY
only:
- develop