mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
travis/linux: Install dependencies and run tests with an X11 server
This commit is contained in:
parent
7a36c77cc6
commit
3e2a5cd4f3
17
.travis.yml
17
.travis.yml
@ -7,26 +7,37 @@ matrix:
|
|||||||
env:
|
env:
|
||||||
- ENABLE_UI=ON
|
- ENABLE_UI=ON
|
||||||
- os: linux
|
- os: linux
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev
|
||||||
env:
|
env:
|
||||||
- ENABLE_UI=OFF
|
- ENABLE_UI=OFF
|
||||||
|
- XVFB=xvfb-run
|
||||||
- os: linux
|
- os: linux
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev
|
||||||
env:
|
env:
|
||||||
- ENABLE_UI=ON
|
- ENABLE_UI=ON
|
||||||
|
- XVFB=xvfb-run
|
||||||
- os: linux
|
- os: linux
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- g++-7
|
- g++-7 libpixman-1-dev libfreetype6-dev libharfbuzz-dev libx11-dev libxcursor-dev
|
||||||
env:
|
env:
|
||||||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
||||||
- ENABLE_UI=ON
|
- ENABLE_UI=ON
|
||||||
|
- XVFB=xvfb-run
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake .. -DENABLE_TESTS=ON -DENABLE_UI=$ENABLE_UI
|
- $XVFB cmake .. -DENABLE_TESTS=ON -DENABLE_UI=$ENABLE_UI
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make
|
- make
|
||||||
@ -36,6 +47,6 @@ script:
|
|||||||
export ASEPRITE=$PWD/bin/aseprite
|
export ASEPRITE=$PWD/bin/aseprite
|
||||||
git clone https://github.com/aseprite/tests.git
|
git clone https://github.com/aseprite/tests.git
|
||||||
cd tests
|
cd tests
|
||||||
bash run-tests.sh
|
$XVFB bash run-tests.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user