aseprite-action/.travis.yml

57 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2015-06-09 02:57:15 +08:00
language: cpp
2018-08-11 04:17:06 +08:00
matrix:
include:
- os: osx
osx_image: xcode9
env:
- ENABLE_UI=ON
2018-08-29 22:10:51 +08:00
- MATRIX_EVAL="wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip && unzip ninja-mac.zip && export PATH=$PWD:$PATH"
2018-08-11 04:17:06 +08:00
- os: linux
addons:
apt:
packages:
2018-08-29 22:10:51 +08:00
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev ninja-build
2018-08-11 04:17:06 +08:00
env:
- ENABLE_UI=OFF
- XVFB=xvfb-run
2018-08-11 04:17:06 +08:00
- os: linux
addons:
apt:
packages:
2018-08-29 22:10:51 +08:00
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev ninja-build
2018-08-11 04:17:06 +08:00
env:
- ENABLE_UI=ON
- XVFB=xvfb-run
2018-08-11 04:17:06 +08:00
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
2018-08-29 22:10:51 +08:00
- g++-7 libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev ninja-build
2018-08-11 04:17:06 +08:00
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- ENABLE_UI=ON
- XVFB=xvfb-run
before_install:
- eval "${MATRIX_EVAL}"
2015-06-09 02:57:15 +08:00
before_script:
- mkdir build
- cd build
2018-08-29 22:10:51 +08:00
- cmake .. -G Ninja -DENABLE_TESTS=ON -DENABLE_UI=$ENABLE_UI
2015-06-09 02:57:15 +08:00
script:
2018-08-29 22:10:51 +08:00
- ninja
2018-06-14 23:08:29 +08:00
- |
2018-08-29 22:05:17 +08:00
if $XVFB ctest --output-on-failure ; then
2018-09-06 06:40:07 +08:00
export ASEPRITE=$PWD/bin/aseprite
git clone https://github.com/aseprite/tests.git
cd tests
$XVFB bash run-tests.sh
2018-08-25 06:14:06 +08:00
else
exit 1
2018-06-14 23:08:29 +08:00
fi