Added auto wizard.

This commit is contained in:
Martin Edenhofer 2015-11-23 14:04:25 +01:00
parent 516a994594
commit df90a8f9d6
2 changed files with 5 additions and 3 deletions

View file

@ -2,11 +2,12 @@ before_script:
- bundle install - bundle install
stages: stages:
- pre
- test - test
- browser - browser
rubocop: rubocop:
stage: test stage: pre
script: script:
- bundle exec rubocop - bundle exec rubocop
@ -150,9 +151,10 @@ job_integration_autowizard:
- export BROWSER=firefox - export BROWSER=firefox
- export RAILS_SERVE_STATIC_FILES=true - export RAILS_SERVE_STATIC_FILES=true
- script/build/test_db_config.sh production ci_zammad_autowizard - script/build/test_db_config.sh production ci_zammad_autowizard
- script/build/test_db_config.sh test ci_zammad_autowizard_test
- cp contrib/auto_wizard_example.json auto_wizard.json - cp contrib/auto_wizard_example.json auto_wizard.json
- script/bootstrap.sh - script/bootstrap.sh
- rake assets:precompile - rake assets:precompile
- script/build/test_startup.sh $RAILS_ENV 3011 - script/build/test_startup.sh $RAILS_ENV 3011
- ruby -I test/ test/integration/auto_wizard_test.rb - ruby -I test/ test/integration/auto_wizard_test.rb || script/build/test_shutdown.sh $RAILS_ENV 3011 && exit 1
- script/build/test_shutdown.sh $RAILS_ENV 3011 - script/build/test_shutdown.sh $RAILS_ENV 3011

View file

@ -5,7 +5,7 @@ DBFILE=config/database.yml
echo "Creating $DBFILE for tests with dbname $DBNAME" echo "Creating $DBFILE for tests with dbname $DBNAME"
echo "$DBENV:" > $DBFILE echo "$DBENV:" >> $DBFILE
echo " adapter: mysql2" >> $DBFILE echo " adapter: mysql2" >> $DBFILE
echo " database: $DBNAME" >> $DBFILE echo " database: $DBNAME" >> $DBFILE
echo " pool: 50" >> $DBFILE echo " pool: 50" >> $DBFILE