From d3ee8e42b5e5f0d77f7749d78eb7c1867c3a81e0 Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Sun, 28 Jan 2018 23:06:55 +0000 Subject: [PATCH] added CI config --- .gitlab-ci.yml | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..7645015f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,85 @@ +before_script: + - ruby -v + - uname -v + - source scripts/prepare_build.sh + - gem install bundler --no-doc + - bundle install --jobs 4 + +.with_ruby21: &ruby21 + image: "ruby:2.1-alpine" + cache: + key: "ruby21" + paths: + - vendor + only: + - master + +.with_ruby22: &ruby22 + image: "ruby:2.2-alpine" + cache: + key: "ruby22" + paths: + - vendor + only: + - master + +.with_ruby23: &ruby23 + image: "ruby:2.3-alpine" + cache: + key: "ruby23" + paths: + - vendor + only: + - master + +.with_ruby24: &ruby24 + image: "ruby:2.4-alpine" + cache: + key: "ruby24" + paths: + - vendor + only: + - master + +.with_ruby25: &ruby25 + image: "ruby:2.5-alpine" + cache: + key: "ruby25" + paths: + - vendor + only: + - master + +.with_jruby9000: &jruby + image: "jruby:9.1-alpine" + cache: + key: "jruby" + paths: + - vendor + only: + - master + +.with_tests: &tests + script: + - PARALLEL=1 MT_HELL=1 bundle exec rake test + - PARALLEL=1 MT_HELL=1 NIO=1 bundle exec rake test + - bundle exec rake rubocop + +test:ruby21: + <<: *ruby21 + <<: *tests +test:ruby22: + <<: *ruby22 + <<: *tests +test:ruby23: + <<: *ruby23 + <<: *tests +test:ruby24: + <<: *ruby24 + <<: *tests +test:ruby25: + <<: *ruby25 + <<: *tests +test:jruby: + <<: *jruby + <<: *tests