-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathruby.yaml
45 lines (36 loc) · 914 Bytes
/
ruby.yaml
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
#
# Ruby Project Template
#
envs:
# Git config
FLOWCI_GIT_URL: "https://github.com/rack/rack.git"
## Credential name if git repo url is ssh or login required for http
# FLOWCI_GIT_CREDENTIAL: "the credentail name your created"
GEM_HOME: ${FLOWCI_AGENT_WORKSPACE}/.gem_home
docker:
image: ruby:2.7
steps:
- name: clone
docker:
image: flowci/debian-git
plugin: 'gitclone'
- name: install
bash: |
cd $FLOWCI_GIT_REPO
bundle install
- name: rubocop
bash: |
cd $FLOWCI_GIT_REPO
${GEM_HOME}/bin/rubocop --format html -o rubocop.html
allow_failure: true
- name: upload report
envs:
REPORT_PATH: "${FLOWCI_GIT_REPO}/rubocop.html"
REPORT_NAME: "Rubocop"
REPORT_ENTRY_FILE: "rubocop.html"
plugin: 'report-upload'
- name: test
bash: |
cd $FLOWCI_GIT_REPO
bundle exec rake test
allow_failure: true