Minor - reorder travis.yml

pull/3064/head
Julio 5 years ago
parent 13f8aa4b86
commit e65fa26830
  1. 47
      .travis.yml

@ -18,6 +18,7 @@ cache:
yarn: true
directories:
- $HOME/.composer/cache/files
php:
- 7.2
- 7.3
@ -43,7 +44,7 @@ before_install:
# Setup display for Selenium
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- sleep 3
- sleep 10
# Get Selenium
- wget http://selenium-release.storage.googleapis.com/3.1/selenium-server-standalone-3.1.0.jar
# Check java
@ -52,7 +53,7 @@ before_install:
- java -version
- java -jar selenium-server-standalone-3.1.0.jar -log selenium.log > /dev/null &
- nohup bash -c "webdriver-manager start 2>&1 &"
- sleep 5
- sleep 10
# Apache & php-fpm configuration
- bash tests/travis/setup-php-fpm.sh
@ -64,33 +65,25 @@ before_install:
- php -ini | grep memory_limit
- sudo cat /etc/hosts
- cd $TRAVIS_BUILD_DIR
- pwd
# Install vendors
- composer update --prefer-source --no-interaction
# Install bundle js/css
- php bin/console assets:install
# Permissions
- sudo chmod -R 777 var public
- composer analyse
# Dump js routes
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
- # Install third party js/css libraries
- yarn install
- ./node_modules/.bin/encore dev
# Permissions
- sudo chown -R www-data:www-data $TRAVIS_BUILD_DIR
- sudo chown -R 775 $TRAVIS_BUILD_DIR
- sudo chmod +x /home/travis/build
- ls -la public/build
install:
- composer update --prefer-source --no-interaction
# Install bundle js/css
- php bin/console assets:install
# Permissions
- sudo chmod -R 777 var public
# Dump js routes
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
- # Install third party js/css libraries
- yarn install
- ./node_modules/.bin/encore dev
# Permissions
- sudo chown -R www-data:www-data $TRAVIS_BUILD_DIR
- sudo chown -R 775 $TRAVIS_BUILD_DIR
- sudo chmod +x /home/travis/build
- ls -la public/build
script:
- whereis google-chrome-stable
- google-chrome-stable --version
- whereis chromedriver
- chromedriver --version
- cd tests/behat
- pwd
- composer analyse
# - travis_wait 45 ../../vendor/behat/behat/bin/behat -v
- ../../vendor/behat/behat/bin/behat features/actionInstall.feature
- ../../vendor/behat/behat/bin/behat features/adminFillUsers.feature

Loading…
Cancel
Save