Skip to content

Commit

Permalink
Add gitlab CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhughes committed Jul 2, 2019
1 parent a664d93 commit 83c37f5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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
...

0 comments on commit 83c37f5

Please sign in to comment.