From 83c37f51e1e9bc49e76a70ea463ed42baca13bff Mon Sep 17 00:00:00 2001 From: "Benjamin M. Hughes" Date: Tue, 2 Jul 2019 12:15:55 -0500 Subject: [PATCH] Add gitlab CI configuration --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b6c667d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +--- +stages: + - lint + - test + +.ruby_docker_template: &ruby_docker_template + before_script: + - ruby --version + - bundle --version + - bundle install + image: ruby:latest + +rubocop: + stage: lint + <<: *ruby_docker_template + script: + - rubocop --version + - rubocop + tags: + - ruby + +test: + stage: test + <<: *ruby_docker_template + script: + - './influx_hs110_energy.rb -h' + tags: + - ruby +...