diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-06 11:17:31 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-06 11:17:31 +0300 |
commit | a91e4a904281c515825b5a08fa56001632aaa5e3 (patch) | |
tree | 86533421e2a3d389ecf30438b70072efcd71d556 /vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml | |
parent | cfd5870b62e9d76e564ffc64db1d1281b4a363bb (diff) |
Add and update .gitignore & .gitlab-ci.yml templates for 8.10
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml')
-rw-r--r-- | vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml b/vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml index 78f3e39949f..2a761bbd127 100644 --- a/vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml +++ b/vendor/gitlab-ci-yml/Ruby.gitlab-ci.yml @@ -10,12 +10,19 @@ services: - redis:latest - postgres:latest +# Cache gems in between builds +cache: + paths: + - vendor/ruby + # This is a basic example for a gem or script which doesn't use # services such as redis or postgres before_script: - - gem install bundler # Bundler is not installed with the image - - bundle install -j $(nproc) # Install dependencies + - ruby -v # Print out ruby version for debugging + - gem install bundler --no-ri --no-rdoc # Bundler is not installed with the image + - bundle install -j $(nproc) --path vendor # Install dependencies into ./vendor/ruby +# Optional - Delete if not using `rubocop` rubocop: script: - rubocop @@ -26,5 +33,5 @@ rspec: rails: script: - - rake db:migrate - - rspec spec + - bundle exec rake db:migrate + - bundle exec rake test |