-
Notifications
You must be signed in to change notification settings - Fork 2
/
.cirrus.yml
62 lines (54 loc) · 1.47 KB
/
.cirrus.yml
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
.ruby: &ruby
bundle_cache:
folder: vendor/bundle
fingerprint_script:
- echo $CIRRUS_OS
- ruby -v
- cat Gemfile
- cat *.gemspec
install_script:
- gem install bundler
- bundle config set --local path 'vendor/bundle'
- bundle update
env:
## To suppress flood of warnings:
## https://github.com/cirruslabs/cirrus-ci-docs/issues/814
## https://github.com/rubygems/rubygems/issues/4466#issuecomment-818688569
## Global for:
## 1. different tasks (rubocop, test, etc.);
## 2. avoiding overriding `env` in specific cases like macOS.
TMPDIR: $CIRRUS_WORKING_DIR
remark_task:
container:
image: node:latest
node_modules_cache:
folder: node_modules
fingerprint_script:
- echo $CIRRUS_OS
- node -v
- cat package.json
populate_script: npm install
remark_script: npm run remark
rubocop_task:
<<: *ruby
container:
image: ruby:latest
rubocop_script: bundle exec rubocop
test_task:
<<: *ruby
container:
matrix:
image: ruby:3.0
image: ruby:3.1
image: ruby:3.2
image: ruby:3.3
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