Skip to content

Commit

Permalink
Cirrus CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 28, 2019
1 parent acc6dbf commit e68eb76
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
27 changes: 27 additions & 0 deletions .cirrus.yml
@@ -0,0 +1,27 @@
container:
image: registry.opensuse.org/yast/head/containers/yast-ruby:latest

Rubocop_task:
container:
cpu: 8
skip: "!changesInclude('.cirrus.yml', '.rubocop.yml', 'Rakefile', '*.rb', '**/*.rb')"
test_script: yast-travis-ruby -o rubocop

Unit Tests_task:
environment:
COVERALLS_REPO_TOKEN: ENCRYPTED[07f77b1412f23d9201d0255c60b61781b308a2db9af24f07e48f1331ee80460c2e3b858f39f737294de04f94e55cc52d]
# Fake a Travis build to send the code coverage to coveralls.io
TRAVIS: 1
test_script: yast-travis-ruby -o tests && shellcheck src/bin/sw_single_wrapper

yardoc_task:
yardoc_cache_cache:
folder: .yardoc
test_script: rake check:doc

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"
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -12,6 +12,6 @@ script:
# the "yast-travis-ruby" script is included in the base yastdevel/ruby image
# see https://github.com/yast/docker-yast-ruby/blob/master/yast-travis-ruby
# exclude the yardoc step, we run the more strict check:doc later
- docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-packager-image yast-travis-ruby -x yardoc
- docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-packager-image rake check:doc
- docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-packager-image shellcheck src/bin/sw_single_wrapper
- docker run --rm -it yast-packager-image yast-travis-ruby -x yardoc
- docker run --rm -it yast-packager-image rake check:doc
- docker run --rm -it yast-packager-image shellcheck src/bin/sw_single_wrapper
1 change: 1 addition & 0 deletions .yardopts
@@ -1,4 +1,5 @@
--no-private
--use-cache
--markup markdown
--protected
src/**/*.rb
Expand Down
6 changes: 3 additions & 3 deletions README.md
@@ -1,6 +1,6 @@
# YaST - The Package Management Libraries #

[![Travis Build](https://travis-ci.org/yast/yast-packager.svg?branch=master)](https://travis-ci.org/yast/yast-packager)
[![Jenkins Build](http://img.shields.io/jenkins/s/https/ci.opensuse.org/yast-packager-master.svg)](https://ci.opensuse.org/view/Yast/job/yast-packager-master/)
[![Coverage Status](https://coveralls.io/repos/yast/yast-packager/badge.png)](https://coveralls.io/r/yast/yast-packager)

[![Build Status](https://api.cirrus-ci.com/github/yast/yast-packager.svg?branch=master)](https://cirrus-ci.com/github/yast/yast-packager?branch=master)
[![Jenkins Build](http://img.shields.io/jenkins/s/https/ci.opensuse.org/yast-yast-packager-master.svg)](https://ci.opensuse.org/view/Yast/job/yast-yast-packager-master/)
[![Coverage Status](https://coveralls.io/repos/github/yast/yast-packager/badge.svg?branch=master)](https://coveralls.io/github/yast/yast-packager?branch=master)

0 comments on commit e68eb76

Please sign in to comment.