gitlab-org--gitlab-foss/.gitlab-ci.yml

44 lines
893 B
YAML
Raw Normal View History

2016-02-19 14:59:46 +00:00
image: "ruby:2.1"
2016-01-22 13:45:34 +00:00
services:
- mysql:latest
- postgres:latest
- redis:latest
2016-02-07 00:57:04 +00:00
cache:
2016-02-19 16:19:57 +00:00
key: "ruby21"
2016-02-07 00:57:04 +00:00
paths:
- vendor
2016-01-22 13:45:34 +00:00
variables:
MYSQL_ALLOW_EMPTY_PASSWORD: "1"
before_script:
- source ./scripts/prepare_build.sh
2015-06-03 20:05:33 +00:00
- ruby -v
- which ruby
- gem install bundler --no-ri --no-rdoc
2015-06-03 20:05:33 +00:00
- cp config/gitlab.yml.example config/gitlab.yml
- touch log/application.log
- touch log/test.log
- bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
- RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate
stages:
- test
- notifications
rubocop:
stage: test
2015-06-15 09:00:13 +00:00
script:
- bundle exec rubocop
tags:
- ruby
- mysql
notify:slack:
stage: notifications
script:
2016-02-24 21:28:32 +00:00
- ./scripts/notify_slack.sh "#ci-test" "Build failed! Check https://gitlab.com/gitlab-org/$(basename „$PWD)/commit/$CI_BUILD_REF/builds"
2016-02-24 17:49:14 +00:00
when: on_failure