diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eee045a0..00000000 --- a/.travis.yml +++ /dev/null @@ -1,79 +0,0 @@ -language: php - -dist: trusty - -sudo: false - -php: - - '7.2' - - '7.3' - -cache: - yarn: true - directories: - - ~/.composer/cache/files - - $SYLIUS_CACHE_DIR - -env: - global: - - APP_ENV=test - - SYLIUS_CACHE_DIR=$HOME/.sylius-cache - - SYLIUS_BUILD_DIR=etc/build - -before_install: - - phpenv config-rm xdebug.ini - - echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - - mkdir -p "${SYLIUS_CACHE_DIR}" - -install: - - composer install --no-interaction --prefer-dist - - (cd tests/Application && yarn install) - -before_script: - - (cd tests/Application && bin/console doctrine:database:create -vvv) - - (cd tests/Application && bin/console doctrine:schema:create -vvv) - - (cd tests/Application && bin/console assets:install public -vvv) - - (cd tests/Application && bin/console cache:warmup -vvv) - - (cd tests/Application && yarn build) - - # Configure display - - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1680x1050x16 - - export DISPLAY=:99 - - # Download and configure ChromeDriver - - | - if [ ! -f $SYLIUS_CACHE_DIR/chromedriver ] || [ "$($SYLIUS_CACHE_DIR/chromedriver --version | grep -c 2.34)" = "0" ]; then - curl http://chromedriver.storage.googleapis.com/2.34/chromedriver_linux64.zip > chromedriver.zip - unzip chromedriver.zip - chmod +x chromedriver - mv chromedriver $SYLIUS_CACHE_DIR - fi - - # Run ChromeDriver - - $SYLIUS_CACHE_DIR/chromedriver > /dev/null 2>&1 & - - # Download and configure Selenium - - | - if [ ! -f $SYLIUS_CACHE_DIR/selenium.jar ] || [ "$(java -jar $SYLIUS_CACHE_DIR/selenium.jar --version | grep -c 3.4.0)" = "0" ]; then - curl http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar > selenium.jar - mv selenium.jar $SYLIUS_CACHE_DIR - fi - - # Run Selenium - - java -Dwebdriver.chrome.driver=$SYLIUS_CACHE_DIR/chromedriver -jar $SYLIUS_CACHE_DIR/selenium.jar > /dev/null 2>&1 & - - # Run webserver - - (cd tests/Application && bin/console server:run 127.0.0.1:8080 --quiet > /dev/null 2>&1 &) - -script: - - composer validate --strict - - composer normalize --dry-run - - composer check-style - - composer analyse - - composer phpspec - - composer phpunit - - - vendor/bin/behat --strict -vvv --no-interaction || vendor/bin/behat --strict -vvv --no-interaction --rerun - -after_failure: - - vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "${SYLIUS_BUILD_DIR}/*.log"