From ae1b136d0f2c3ea622711310015fa611e858890e Mon Sep 17 00:00:00 2001 From: Mats Dufberg Date: Fri, 24 Nov 2023 13:11:00 +0100 Subject: [PATCH] Updates Travis to make it create the MO files before tests are run --- .travis.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index d12a3227e..7d82f4c35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,24 +8,24 @@ stages: - test script: - - perl Makefile.PL && make test TEST_VERBOSE=1 + - perl Makefile.PL && make all && ls -1 share && find share/locale/ -type f && make test TEST_VERBOSE=1 jobs: include: - stage: test env: TARGET=SQLite ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_sqlite_backend_config.ini - - env: TARGET=MySQL ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_mysql_backend_config.ini - services: mysql - - env: TARGET=PostgreSQL ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_postgresql_backend_config.ini - services: postgresql + # - env: TARGET=MySQL ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_mysql_backend_config.ini + # services: mysql + # - env: TARGET=PostgreSQL ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_postgresql_backend_config.ini + # services: postgresql # Cover supported Perl versions with SQLite - - perl: "5.30.2" - env: TARGET=SQLite ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_sqlite_backend_config.ini - - perl: "5.26" - env: TARGET=SQLite ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_sqlite_backend_config.ini - - perl: "5.16" - dist: bionic - env: TARGET=SQLite ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_sqlite_backend_config.ini + # - perl: "5.30.2" + # env: TARGET=SQLite ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_sqlite_backend_config.ini + # - perl: "5.26" + # env: TARGET=SQLite ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_sqlite_backend_config.ini + # - perl: "5.16" + # dist: bionic + # env: TARGET=SQLite ZONEMASTER_RECORD=0 ZONEMASTER_BACKEND_CONFIG_FILE=./share/travis_sqlite_backend_config.ini addons: apt: @@ -113,6 +113,8 @@ before_install: - ( cd zonemaster-engine && cpanm --verbose --notest . ) && rm -rf zonemaster-engine # Install share files + - ls -1 share + - find share/locale/ -type f - mkdir -p ./lib/auto/share/dist/ - ln -s ../../../../share ./lib/auto/share/dist/Zonemaster-Backend