diff options
-rw-r--r-- | .gitlab-ci.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..28fbc42 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +jobs: +- script: | + export PATH=~/bin:/usr/local/bin:/usr/bin:/bin + ruby -v + gem install bundler + cp config/database.yml.mysql config/database.yml + cp config/application.yml.example config/application.yml + ! 'sed "s/username\:.*$/username\: runner/" -i config/database.yml' + ! 'sed "s/password\:.*$/password\: ''password''/" -i config/database.yml' + bundle --without postgres + RAILS_ENV=test bundle exec rake db:setup + SIMPLECOV=true RAILS_ENV=test bundle exec rake spec + name: Specs + branches: true + tags: false + runner: +- script: | + export PATH=~/bin:/usr/local/bin:/usr/bin:/bin + ruby -v + gem install bundler + cp config/database.yml.mysql config/database.yml + cp config/application.yml.example config/application.yml + ! 'sed "s/username\:.*$/username\: runner/" -i config/database.yml' + ! 'sed "s/password\:.*$/password\: ''password''/" -i config/database.yml' + bundle --without postgres + bundle exec rubocop + name: Rubocop + branches: true + tags: false + runner: +deploy_jobs: [] +skip_refs: '' |