summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-03 18:09:19 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-03 18:09:19 +0300
commit0aded8fe871214c92dd43978e8573fbd395f4214 (patch)
treef38b76f9a072435bfc6b5d0428d2c36546d47134
parenta2921bdbc8ec0fca3d27ce5e2a6d813549bf99dd (diff)
downloadgitlab-ci-0aded8fe871214c92dd43978e8573fbd395f4214.tar.gz
add .gitlab-ci.yaml
-rw-r--r--.gitlab-ci.yml32
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: ''