2dd5630eae
Exclude the branch "libpng16" from testing. It's identical to "master". Also exclude the other (non-current) "libpng[0-1][0-7]" branches. Parallelize the builds and the unit tests. For Travis CI, update the build matrix as follows: * On Linux, use both clang and gcc. * On macOS, use clang only, with and without Xcode. For AppVeyor CI, add a build matrix as follows: * On Windows, use Microsoft Visual Studio 2019 on x86, x64 and arm64. * Also on Windows, use MSYS2 on x86 and x64. Use the new scripts/ci_*.sh; remove the old scripts/travis.sh.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
branches:
|
|
except:
|
|
- /libpng[0-1][0-7]/
|
|
|
|
language: c
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
|
|
env:
|
|
- AUTOMATION=cmake CI_NO_TEST=1
|
|
- AUTOMATION=cmake CI_CMAKE_VARS="-DPNG_HARDWARE_OPTIMIZATIONS=ON" CI_SANITIZERS="address,undefined"
|
|
- AUTOMATION=cmake CI_CMAKE_VARS="-DPNG_HARDWARE_OPTIMIZATIONS=OFF" CI_SANITIZERS="address,undefined"
|
|
- AUTOMATION=cmake CI_CMAKE_GENERATOR=Xcode
|
|
- AUTOMATION=autotools CI_NO_TEST=1
|
|
- AUTOMATION=autotools CI_CONFIGURE_FLAGS="--enable-hardware-optimizations"
|
|
- AUTOMATION=autotools CI_CONFIGURE_FLAGS="--disable-hardware-optimizations"
|
|
- AUTOMATION=legacy CI_NO_TEST=1
|
|
- AUTOMATION=legacy CI_SANITIZERS="address,undefined"
|
|
|
|
matrix:
|
|
exclude:
|
|
- os: osx
|
|
compiler: gcc
|
|
- os: linux
|
|
env: AUTOMATION=cmake CI_CMAKE_GENERATOR=Xcode
|
|
|
|
before_script:
|
|
- 'export CI_CMAKE_BUILD_FLAGS="--parallel 2"'
|
|
- 'export CI_CTEST_FLAGS="--parallel 2"'
|
|
- 'export CI_MAKE_FLAGS=-j2'
|
|
- 'export CI_CC=$TRAVIS_COMPILER'
|
|
- 'export CI_LEGACY_MAKEFILES="scripts/makefile.$TRAVIS_COMPILER"'
|
|
|
|
script:
|
|
- './scripts/ci_$AUTOMATION.sh'
|
|
|
|
sudo: false
|