mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Travis testing with firefox.
This commit is contained in:
parent
aaa1e72936
commit
d89a180fc8
29
.travis.yml
29
.travis.yml
@ -5,7 +5,7 @@ php:
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
||||
@ -24,18 +24,31 @@ before_install:
|
||||
- echo "extension=ldap.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||
|
||||
install:
|
||||
#- wget http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip
|
||||
#- unzip chromedriver_linux64.zip -d ./
|
||||
#- export CHROME_BIN=chromium-browser
|
||||
# Start xvfb for gui test
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
# Download and start selenium
|
||||
- sleep 3 # give xvfb some time to start
|
||||
- echo "Download selenium-server-standalone jar file"
|
||||
- wget -c -nc --retry-connrefused --tries=0 http://goo.gl/EoH85x -O selenium-server-standalone.jar
|
||||
- echo "Run selenium server - background process"
|
||||
- nohup bash -c "java -jar selenium-server-standalone.jar &" && sleep 1; cat nohup.out
|
||||
# Run Composer update
|
||||
- travis_retry composer self-update && composer --version
|
||||
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.0"
|
||||
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||
- travis_retry composer install --dev --prefer-dist --no-interaction
|
||||
- travis_retry composer global require "codeception/codeception=2.1.*" "codeception/specify=*" "codeception/verify=*"
|
||||
|
||||
# Install test environment
|
||||
- |
|
||||
mysql -e 'CREATE DATABASE `humhub_test` CHARACTER SET utf8 COLLATE utf8_general_ci;'
|
||||
cd protected/humhub/tests/codeception/bin
|
||||
php yii migrate/up --includeModuleMigrations=1 --interactive=0
|
||||
php yii installer/auto
|
||||
#php yii search/rebuild
|
||||
php yii search/rebuild
|
||||
cd ../../../../..
|
||||
cd protected/humhub/tests
|
||||
codecept build
|
||||
@ -43,15 +56,15 @@ install:
|
||||
|
||||
script:
|
||||
- php -S 127.0.0.1:8080 > /dev/null 2>&1 &
|
||||
- phantomjs --webdriver=4444 > /dev/null 2>&1 &
|
||||
#- phantomjs --webdriver=4444 > /dev/null 2>&1 & # Not in use since phantomjs hangs with QIODevice::write (QTcpSocket): device not open
|
||||
- sleep 5
|
||||
# curl http://127.0.0.1:8080/index-test.php
|
||||
- curl http://127.0.0.1:8080/index-test.php
|
||||
- |
|
||||
cd protected/humhub/tests/
|
||||
codecept run
|
||||
|
||||
#after_failure:
|
||||
# cd ../modules/user/tests/codeception/_output/
|
||||
# cat user.functional.LoginCest.testUserLogin.fail.html
|
||||
#cat ../modules/*/tests/codeception/_output/*.html
|
||||
#- cd ../modules/user/tests/codeception/_output/
|
||||
#- cat user.functional.LoginCest.testUserLogin.fail.html
|
||||
#cat ../modules/*/tests/codeception/_output/*.html
|
||||
|
@ -66,7 +66,6 @@ class FixtureHelper extends Module
|
||||
{
|
||||
return [
|
||||
'user' => ['class' => \humhub\modules\user\tests\codeception\fixtures\UserFixture::className()],
|
||||
'profile' => ['class' => \humhub\modules\user\tests\codeception\fixtures\ProfileFixture::className()],
|
||||
'group' => ['class' => \humhub\modules\user\tests\codeception\fixtures\GroupFixture::className()],
|
||||
'group_permission' => ['class' => \humhub\modules\user\tests\codeception\fixtures\GroupPermissionFixture::className()],
|
||||
'settings' => ['class' => \humhub\tests\codeception\fixtures\SettingFixture::className()],
|
||||
|
@ -22,7 +22,7 @@ modules:
|
||||
config:
|
||||
WebDriver:
|
||||
url: http://localhost/codebase/humhub/v1.1-dev/index.php
|
||||
browser: phantomjs
|
||||
browser: firefox
|
||||
window_size: maximize
|
||||
restart: true
|
||||
#PhpBrowser:
|
||||
|
Loading…
x
Reference in New Issue
Block a user