Travis CI integration.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 13 Jun 2016 12:41:49 +0000 (14:41 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 13 Jun 2016 12:55:01 +0000 (14:55 +0200)
.travis.yml [new file with mode: 0644]
Makefile [deleted file]
README.md

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..f003cc1
--- /dev/null
@@ -0,0 +1,10 @@
+language: ruby
+
+rvm:
+  - 1.9.3
+  - 2.0
+  - 2.2
+
+script:
+  - bundle exec rubocop
+  - bundle exec ruby -rminitest/autorun -Ilib:test -e 'Dir.glob "./test/*_test.rb", &method(:require)'
diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 3079bc0..0000000
--- a/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-all: run
-
-run: fetch
-       bundle exec rackup
-
-check: lint test
-
-fetch: Gemfile.lock
-
-lint:
-       rubocop
-
-test:
-       ruby -rminitest/autorun -Ilib:test -e 'Dir.glob "./test/*_test.rb", &method(:require)'
-
-clean:
-       rm -fv Gemfile.lock
-
-Gemfile.lock:
-       bundle install
-
-.PHONY: all check clean fetch lint test run
index 06b8c4b..9672c85 100644 (file)
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ At OpenNebula host:
     oneuser create nowadmin --driver server_cipher 'the-best-strongest-password-ever'
     oneuser chgrp nowadmin oneadmin
 
-At NOW host (configration `/etc/now.yaml`):
+At NOW host (configuration `/etc/now.yaml`):
 
     opennebula:
       admin_user: 'nowadmin'
@@ -29,13 +29,9 @@ List networks example:
 
 ## Development
 
-Using `make`:
-
-    make check
-    make run
-
-Or directly:
-
     bundle install
-    bundle exec rubocop
     bundle exec rackup
+
+### Testing
+
+See *.travis.yml*.