diff options
author | azul <azul@riseup.net> | 2016-08-26 17:42:27 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2016-08-26 17:42:27 +0000 |
commit | c134e0940a44ba3fb3f0f8ee86faa8053a9e0b44 (patch) | |
tree | 8aa457247954e4460dce54653e2251d50bdab9f6 /.gitlab-ci.yml | |
parent | 6663a070f6b34d5af4c1812b1255c64534a7a59a (diff) | |
parent | 4c4bcebd0d55800871e2c93dff849a0daf649b85 (diff) |
Merge branch 'test/gitlab' into 'master'
Run tests on gitlab
See merge request !1
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..14e56a7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +# This file is a template, and might need editing before it works on your project. +# Official language image. Look for the different tagged releases at: +# https://hub.docker.com/r/library/ruby/tags/ +image: "ruby:2.3" + +# Pick zero or more services to be used on all builds. +# Only needed when using a docker container to run your tests in. +# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service +services: + - couchdb:1.6.1 + +# Cache gems in between builds +cache: + paths: + - vendor/ + +# This is a basic example for a gem or script which doesn't use +# services such as redis or postgres +before_script: + - ruby -v + - curl -s couchdb:5984 + - gem install bundler --no-ri --no-rdoc + - bundle install -j $(nproc) --path vendor + +test: + script: + - bundle exec rake test |