diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-04-25 20:50:33 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-04-25 21:28:31 -0400 |
commit | 88e60bbbcb676274fd4a84ca4bc7f70497a09671 (patch) | |
tree | a8a666fef5a7628a274da0e17dc66f69f7958013 | |
parent | 15f8fb31641f4dabce98bc6a14a1828f053cdedc (diff) | |
download | gitlab-ce-88e60bbbcb676274fd4a84ca4bc7f70497a09671.tar.gz |
Update .gitlab-ci.yml
-rw-r--r-- | .gitlab-ci.yml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 141e7ba41de..014bbdc172d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,17 @@ -# This file is generated by GitLab CI +image: "ruby:2.1" + +services: + - mysql:latest + - redis:latest + +cache: + key: "ruby21" + paths: + - vendor + +variables: + MYSQL_ALLOW_EMPTY_PASSWORD: "1" + before_script: - ./scripts/prepare_build.sh - ruby -v @@ -8,7 +21,7 @@ before_script: - touch log/application.log - touch log/test.log - bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}" - - bundle exec rake db:create RAILS_ENV=test + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate spec:feature: script: |