2015-06-08 18:57:15 +00:00
|
|
|
language: cpp
|
|
|
|
|
2018-08-10 20:17:06 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode9
|
|
|
|
env:
|
|
|
|
- ENABLE_UI=ON
|
2018-08-29 14:10:51 +00: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-10 20:17:06 +00:00
|
|
|
- os: linux
|
2018-08-11 01:23:07 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2018-08-29 14:10:51 +00:00
|
|
|
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev ninja-build
|
2018-08-10 20:17:06 +00:00
|
|
|
env:
|
|
|
|
- ENABLE_UI=OFF
|
2018-08-11 01:23:07 +00:00
|
|
|
- XVFB=xvfb-run
|
2018-08-10 20:17:06 +00:00
|
|
|
- os: linux
|
2018-08-11 01:23:07 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2018-08-29 14:10:51 +00:00
|
|
|
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev ninja-build
|
2018-08-10 20:17:06 +00:00
|
|
|
env:
|
|
|
|
- ENABLE_UI=ON
|
2018-08-11 01:23:07 +00:00
|
|
|
- XVFB=xvfb-run
|
2018-08-10 20:17:06 +00:00
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2018-08-29 14:10:51 +00:00
|
|
|
- g++-7 libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev ninja-build
|
2018-08-10 20:17:06 +00:00
|
|
|
env:
|
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
|
|
|
- ENABLE_UI=ON
|
2018-08-11 01:23:07 +00:00
|
|
|
- XVFB=xvfb-run
|
2015-06-08 19:49:36 +00:00
|
|
|
|
2018-08-17 17:27:19 +00:00
|
|
|
before_install:
|
|
|
|
- eval "${MATRIX_EVAL}"
|
|
|
|
|
2015-06-08 18:57:15 +00:00
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2019-03-15 19:11:20 +00:00
|
|
|
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON -DENABLE_UI=$ENABLE_UI
|
2015-06-08 18:57:15 +00:00
|
|
|
|
|
|
|
script:
|
2018-08-29 14:10:51 +00:00
|
|
|
- ninja
|
2018-06-14 15:08:29 +00:00
|
|
|
- |
|
2018-08-29 14:05:17 +00:00
|
|
|
if $XVFB ctest --output-on-failure ; then
|
2018-09-05 22:40:07 +00:00
|
|
|
export ASEPRITE=$PWD/bin/aseprite
|
2019-01-10 12:51:04 +00:00
|
|
|
git clone --recursive https://github.com/aseprite/tests.git
|
2018-09-05 22:40:07 +00:00
|
|
|
cd tests
|
|
|
|
$XVFB bash run-tests.sh
|
2018-08-24 22:14:06 +00:00
|
|
|
else
|
|
|
|
exit 1
|
2018-06-14 15:08:29 +00:00
|
|
|
fi
|