12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- .template_api_client:
- stage: test
- extends:
- - .job_rules_default
- - .tags_docker_low_concurrency
- services:
- - !reference [.services, mysql]
- - !reference [.services, postgresql]
- - !reference [.services, redis]
- - !reference [.services, memcached]
- variables:
- RAILS_ENV: "production"
- APP_RESTART_CMD: 'bundle exec rake environment zammad:ci:app:restart'
- api_client:php:
- extends:
- - .template_api_client
- variables:
- ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_URL: "http://localhost:3000"
- ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_USERNAME: "admin@example.com"
- ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_PASSWORD: "test"
- ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_DEBUG: 0
- script:
- - RAILS_ENV=test bundle exec rake db:create
- - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_start[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:start"
- - RAILS_ENV=test bundle exec rake zammad:ci:test:start zammad:setup:auto_wizard
- - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_start\\r\\e[0K"
- - git clone https://github.com/zammad/zammad-api-client-php.git
- - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- - php composer-setup.php --install-dir=/usr/local/bin
- - ln -s /usr/local/bin/composer.phar /usr/local/bin/composer
- - cd zammad-api-client-php
- - composer install
- - vendor/bin/phpunit
- api_client:ruby:
- extends:
- - .template_api_client
- script:
- - RAILS_ENV=test bundle exec rake db:create
- - cp contrib/auto_wizard_test.json auto_wizard.json
- - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_start[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:start"
- - bundle exec rake zammad:ci:test:start
- - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_start\\r\\e[0K"
- - git clone https://github.com/zammad/zammad-api-client-ruby.git
- - cd zammad-api-client-ruby
- - bundle update --bundler
- - bundle install -j $(nproc)
- - bundle exec rspec
|