-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
40 lines (38 loc) · 757 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
40 lines (38 loc) · 757 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
stages:
- test
- deploy
test-default-docker:
tags:
- linux
- x86_64
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/erlang:latest
stage: test
script:
- rebar3 compile
- rebar3 edoc
- rebar3 dialyzer
- rebar3 ct
- rebar3 as prod escriptize
- ./erlperf 'timer:sleep(1).'
after_script:
- mv "_build/test/logs" ./public
artifacts:
when: always
paths:
- "./public"
expire_in: 3 days
reports:
junit:
- "./public/last/junit_report.xml"
# Pages: publishing Common Test results
pages:
stage: deploy
needs:
- test-default-docker
script:
- echo "Uploading to pages"
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH