Commit 010e1ee54171523d6052e3f278174cc92808e4ba

Authored by Braulio Bhavamitra
1 parent e7baba6e

CI: compile translations (fix cucumber tests)

Showing 2 changed files with 13 additions and 11 deletions   Show diff stats
.gitlab-ci.yml
1 before_script: 1 before_script:
2 - mkdir -p tmp/pids log 2 - mkdir -p tmp/pids log
3 - - script/noosfero-plugins disableall  
4 - bundle check || bundle install 3 - bundle check || bundle install
  4 + - script/noosfero-plugins disableall
  5 + - rm -f tmp/makemo.stamp && rake makemo &>/dev/null
5 # database 6 # database
6 - cp config/database.yml.gitlab-ci config/database.yml 7 - cp config/database.yml.gitlab-ci config/database.yml
7 - createdb gitlab_ci_test || true 8 - createdb gitlab_ci_test || true
8 - - bundle exec rake db:schema:load  
9 - - bundle exec rake db:migrate 9 + - bundle exec rake db:schema:load &>/dev/null
  10 + - bundle exec rake db:migrate &>/dev/null
10 11
11 units: 12 units:
12 - script: 'bundle exec rake test:units' 13 + script: bundle exec rake test:units
13 functionals: 14 functionals:
14 - script: 'bundle exec rake test:functionals' 15 + script: bundle exec rake test:functionals
15 integration: 16 integration:
16 - script: 'bundle exec rake test:integration' 17 + script: bundle exec rake test:integration
17 cucumber: 18 cucumber:
18 - script: 'bundle exec rake cucumber' 19 + script: bundle exec rake cucumber
19 selenium: 20 selenium:
20 - script: 'bundle exec rake selenium' 21 + script: bundle exec rake selenium
21 plugins: 22 plugins:
22 - script: 'bundle exec rake test:noosfero_plugins' 23 + script: bundle exec rake test:noosfero_plugins
23 24
@@ -6,7 +6,7 @@ rvm: @@ -6,7 +6,7 @@ rvm:
6 before_install: 6 before_install:
7 # dependencies 7 # dependencies
8 - sudo apt-get update 8 - sudo apt-get update
9 - - sudo apt-get -y install po4a iso-codes tango-icon-theme pidgin-data openjdk-6-jre curl wget 9 + - sudo apt-get -y install po4a iso-codes tango-icon-theme pidgin-data default-jre
10 - sudo apt-get -y install libmagickwand-dev libpq-dev libreadline-dev libsqlite3-dev libxslt1-dev 10 - sudo apt-get -y install libmagickwand-dev libpq-dev libreadline-dev libsqlite3-dev libxslt1-dev
11 # selenium support 11 # selenium support
12 - export DISPLAY=:99.0 12 - export DISPLAY=:99.0
@@ -14,8 +14,9 @@ before_install: @@ -14,8 +14,9 @@ before_install:
14 14
15 before_script: 15 before_script:
16 - mkdir -p tmp/pids log 16 - mkdir -p tmp/pids log
17 - - script/noosfero-plugins disableall  
18 - bundle check || bundle install 17 - bundle check || bundle install
  18 + - script/noosfero-plugins disableall
  19 + - rake makemo
19 # database 20 # database
20 - cp config/database.yml.travis config/database.yml 21 - cp config/database.yml.travis config/database.yml
21 - psql -c 'create database myapp_test;' -U postgres 22 - psql -c 'create database myapp_test;' -U postgres