diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0bca064963d..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,111 +0,0 @@ -dist: focal - -env: - global: - # Used for saving generated test datasets. See Notion for details. - - secure: FTT6C4vhk88L1RKHmUnbTdXdTyjkhoAhtXwYGAvkrrTngU1uJMZeoFeHLqVf/uxQuNssOrEJsQWGrka5OEd1FAAxUuqTmytxRMuz9A6Z4qp5DiMIDyCB9WF5AdY1cb3XQw5GiPc2BWrmBxxRIKporkaND0UBRmyeHDvppjn0uME= - - APPLICATION=ojs - -# Configure the build matrix -matrix: - include: - # Validation - - env: TEST=validation - php: 8.0 - # PostgreSQL / various PHP - - env: TEST=pgsql - dist: bionic - php: 7.3 - - env: TEST=pgsql LEGACY_SSL=1 - php: 7.4 - - env: - - TEST: pgsql - - SAVE_BUILD: true - LEGACY_SSL: 1 - php: 8.0 - - env: TEST=pgsql LEGACY_SSL=1 - php: 8.1 - # MySQL / various PHP - - env: TEST=mysql - dist: bionic - php: 7.3 - - env: TEST=mysql LEGACY_SSL=1 - php: 7.4 - - env: - - TEST: mysql - - SAVE_BUILD: true - - LEGACY_SSL: 1 - php: 8.0 - - env: TEST=mysql LEGACY_SSL=1 - php: 8.1 - - env: TEST=mysql LIBONIG_INSTALL=1 LEGACY_SSL=1 - php: 8.2.0 - - env: TEST=pgsql LIBONIG_INSTALL=1 LEGACY_SSL=1 - php: 8.2.0 -language: php -python: - - 3.3 # Required by Javascript linter/builder -git: - # Inhibit automatic submodule checkout (see below) - submodules: false -cache: - npm: true - directories: - - $HOME/.composer/cache - - $HOME/.cache -addons: - chrome: beta - postgresql: "9.5" - apt: - update: true - packages: - - libvulkan1 - - libu2f-udev - -before_install: - - if [ -n "$LIBONIG_INSTALL" ]; then sudo apt-get install libonig5; fi - - # Check out submodules (this script checks out developer forks if necessary) - - ./tools/startSubmodulesTRAVIS.sh - - # Update to latest stable version of npm - - npm i g -npm - - - | - if [[ "$TEST" != "validation" ]]; then - # Prepare for unit and integration tests. - - # Prepare the server environment - ./lib/pkp/tools/travis/prepare-webserver.sh - - # Prepare the local codebase - ./lib/pkp/tools/travis/install-composer-dependencies.sh - if [ -n "$LEGACY_SSL" ]; then NODE_OPTIONS=--openssl-legacy-provider npm install && NODE_OPTIONS=--openssl-legacy-provider npm run build; else npm install && npm run build; fi - else - # Prepare for validation tests. - npm install - ./lib/pkp/tools/travis/install-linter.sh - fi - -script: - - | - if [[ "$TEST" != "validation" ]]; then - # Run the unit and integration tests. - source ./lib/pkp/tools/travis/prepare-tests.sh - ./lib/pkp/tools/travis/run-tests.sh - else - # Run the validation tests. - ./lib/pkp/tools/travis/validate-xml.sh - ./lib/pkp/tools/buildjs.sh -n - ./lib/pkp/tools/checkHelp.sh - ./lib/pkp/tools/travis/validate-json.sh - npm run lint - fi - -after_script: - - cat error.log - -after_failure: - - sudo apt-get install sharutils - # Outputs only the oldest file found at the screenshots folder due to log limits - - find cypress/screenshots -type f -printf '%T+\t%p\n' | sort | head -n 1 | cut -f 2 | tar -czT - | uuencode /dev/stdout