/
.cirrus.yml
29 lines (24 loc) · 995 Bytes
/
.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
container:
image: registry.opensuse.org/yast/sle-15/sp2/containers/yast-ruby
Rubocop_task:
container:
cpu: 8
test_script: rake check:rubocop
only_if: "changesInclude('.cirrus.yml', '.rubocop.yml', 'Rakefile', '**/*.rake', '*.rb', '**/*.rb')"
Unit Tests_task:
environment:
COVERAGE: 1
COVERALLS_REPO_TOKEN: ENCRYPTED[07f77b1412f23d9201d0255c60b61781b308a2db9af24f07e48f1331ee80460c2e3b858f39f737294de04f94e55cc52d]
# Fake a Travis build to send the code coverage to coveralls.io
TRAVIS: 1
test_script: rake test:unit && shellcheck src/bin/sw_single_wrapper
yardoc_task:
yardoc_cache_cache:
folder: .yardoc
test_script: rake check:doc
only_if: "changesInclude('.cirrus.yml', 'Rakefile', '**/*.rake', '*.rb', '**/*.rb')"
Package Build_task:
# run the other steps
test_script: yast-travis-ruby -x tests -x rubocop -x yardoc
Debug_task:
test_script: "uname -a; echo '---------'; rpm -qa | sort; echo '---------'; df -h; echo '---------'; free -h"