Commit a97f8e194ff0d9c2b83e95f679021087ad719f41

Authored by Braulio Bhavamitra
1 parent bfa27a7b

CI: fix gitlab build configuration

Showing 2 changed files with 6 additions and 6 deletions   Show diff stats
.gitlab-ci.yml
1   -before_install:
  1 +before_script:
2 2 - mkdir -p tmp/pids log
3 3 - script/noosfero-plugins disableall
4 4 - bundle check || bundle install
5 5 # database
6 6 - cp config/database.yml.gitlab-ci config/database.yml
7   - - dropdb gitlab_ci_test
8   - - createdb gitlab_ci_test
  7 + - createdb gitlab_ci_test || true
9 8 - bundle exec rake db:schema:load
10 9 - bundle exec rake db:migrate
11 10  
... ...
config/database.yml.gitlab-ci
1   -# From http://about.travis-ci.org/docs/user/database-setup/
2   -test:
  1 +test: &TEST
3 2 adapter: postgresql
4 3 database: gitlab_ci_test
5   - username: postgres
  4 + username: gitlab_ci_runner
  5 +development:
  6 + <<: *TEST
... ...