From 60f68206d99974035ecfba13d044e8516a2637b3 Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 26 Aug 2016 17:02:13 +0200 Subject: [test] initial .gitlab-ci.yml file Mostly copied from the webapp just to see how it goes. I did not carry over version restrictions from the .travis.yml file. I hope these limitations have vanished now and i can also remove them on travis. --- .gitlab-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c2c930c --- /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.1" + +# 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 -- cgit v1.2.3