From d5bd0c52ab2052c2d6796424f15d94ffff02b761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Fri, 17 Apr 2015 13:57:24 +0200 Subject: [PATCH] switch from Travis to Jenkins CI replace .travis.yml by custom ci.sh script --- .coveralls.yml | 2 +- .rubocop.yml | 5 +++++ .travis.yml | 13 ------------- ci.sh | 20 ++++++++++++++++++++ 4 files changed, 26 insertions(+), 14 deletions(-) delete mode 100644 .travis.yml create mode 100755 ci.sh diff --git a/.coveralls.yml b/.coveralls.yml index 91600595a..07cb47555 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1 +1 @@ -service_name: travis-ci +service_name: jenkins-ci diff --git a/.rubocop.yml b/.rubocop.yml index 450745bb2..e1efd0f7c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,8 @@ +AllCops: + Include: + Exclude: + - ".vendor/**/*" + # use the shared Yast defaults inherit_from: /usr/share/YaST2/data/devtools/data/rubocop_yast_style.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fff1b3a40..000000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: ruby -before_install: - # disable rvm, use system Ruby - - rvm reset - - wget https://raw.githubusercontent.com/yast/yast-devtools/master/travis-tools/travis_setup.sh - - sh ./travis_setup.sh -p "yast2-devtools yast2 yast2-slp yast2-add-on" -g bundler -script: - - rake check:pot - - rubocop - - yardoc - - COVERAGE=1 bundle exec rake test:unit - - sudo rake install - diff --git a/ci.sh b/ci.sh new file mode 100755 index 000000000..02be868c0 --- /dev/null +++ b/ci.sh @@ -0,0 +1,20 @@ +#! /bin/sh +# +# This script is executed in Jenkins CI to run some additional checks. +# + +set -xe + +if [ -d .vendor ]; then + bundle update +else + bundle install --path .vendor/bundle +fi + +bundle exec rubocop +bundle exec yardoc + +bundle exec rake check:pot +rm _MISSING_TEXTDOMAIN_* + +COVERAGE=1 bundle exec rake test:unit