Skip to content

Commit

Permalink
Updates Travis to make it create the MO files before tests are run
Browse files Browse the repository at this point in the history
  • Loading branch information
matsduf committed Nov 24, 2023
1 parent 812a080 commit ae1b136
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit ae1b136

Please sign in to comment.