From c30ce5bc13bc749d744ee92df948a9feefdd767e Mon Sep 17 00:00:00 2001 From: Mauricio Giacomini Girardello <mgg12@inf.ufpr.br> Date: Wed, 16 Mar 2016 11:14:51 -0300 Subject: [PATCH] improve gitlab-ci scripts --- .gitlab-ci.yml | 20 ++++++++++++++++++-- config/orientdb.yml | 15 --------------- 2 files changed, 18 insertions(+), 17 deletions(-) delete mode 100644 config/orientdb.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b39a1d3..a27b2cc5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,10 @@ variables: POSTGRES_USER: portalmec POSTGRES_PASSWORD: 123mudar +stages: + - test + - deploy + before_script: - apt-get update -y - apt-get install default-jre postgresql-client -y @@ -15,14 +19,26 @@ before_script: # gems - gem install bundler - bundle install --jobs $(nproc) --path=/cache/bundler - - bundle exec rake db:migrate:reset RAILS_ENV=test test: stage: test script: + - bundle exec rake db:migrate:reset RAILS_ENV=test - rake test tags: - ruby - postgres - elasticsearch - - redis \ No newline at end of file + - redis + +#deploy: +# stage: deploy +# script: +# - mina deploy +# only: +# - master +# tags: +# - ruby +# - postgres +# - elasticsearch +# - redis \ No newline at end of file diff --git a/config/orientdb.yml b/config/orientdb.yml deleted file mode 100644 index c8844893..00000000 --- a/config/orientdb.yml +++ /dev/null @@ -1,15 +0,0 @@ -development: &development - host: localhost - database: portalmec - username: admin - password: admin - port: 2480 - ssl: false - -test: - host: mecdb1.c3sl.ufpr.br - database: PortalMEC - username: admin - password: admin - port: 2480 - ssl: false -- GitLab