-
Notifications
You must be signed in to change notification settings - Fork 3
/
.cirrus.yaml
87 lines (68 loc) · 1.84 KB
/
.cirrus.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
bundle_cache: &bundle_cache
bundle_cache:
folder: /usr/local/bundle
fingerprint_script:
- echo $CIRRUS_OS
- ruby -v
- cat Gemfile
- cat *.gemspec
install_script:
- gem install bundler
- bundle update
remark_task:
container:
image: node
node_modules_cache:
folder: node_modules
fingerprint_script:
- echo $CIRRUS_OS
- node -v
- cat package.json
install_script: npm install
lint_script: npm run remark
only_if: ($CIRRUS_BRANCH == 'main') ||
changesInclude(
'.cirrus.yaml', '.gitignore', 'package.json', '.remarkrc.yaml', '**.md'
)
bundle-audit_task:
container:
image: ruby
<<: *bundle_cache
audit_script: bundle exec bundle-audit check --update
only_if: ($CIRRUS_BRANCH == 'main') ||
changesInclude(
'.cirrus.yaml', '.gitignore', 'Gemfile', '*.gemspec'
)
rubocop_task:
container:
image: ruby
<<: *bundle_cache
lint_script: bundle exec rubocop
only_if: ($CIRRUS_BRANCH == 'main') ||
changesInclude(
'.cirrus.yaml', '.gitignore', 'Gemfile', 'Rakefile', '*.gemspec', '.rubocop.yml',
'**.rb', '**.ru'
)
rspec_task:
container:
matrix:
image: ruby:3.0
image: ruby:3.1
image: ruby:3.2
image: ruby:3.3
<<: *bundle_cache
test_script: bundle exec rspec
codecov_uploader_cache:
folder: codecov
fingerprint_script:
- curl --no-progress-meter https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
populate_script:
- mkdir -p codecov
- curl https://uploader.codecov.io/latest/linux/codecov -o codecov/uploader
- chmod +x codecov/uploader
codecov_script: codecov/uploader
only_if: ($CIRRUS_BRANCH == 'main') ||
changesInclude(
'.cirrus.yaml', '.gitignore', 'Gemfile', 'Rakefile', '*.gemspec', '.rspec',
'lib/**', 'spec/**'
)