Commit c48545fb authored by RazrFalcon's avatar RazrFalcon

(ci) Install dependencies for each job separately.

parent 759ac336
language: rust
rust:
- stable
before_install:
# Qt 5.6
- sudo add-apt-repository ppa:beineri/opt-qt562-trusty -y
# python 3.6
- sudo add-apt-repository ppa:deadsnakes/ppa -y
- sudo apt-get update -qq
install:
# for cairo backend
- sudo apt-get install -y libpango1.0-dev
# for capi/examples/cairo-*
- sudo apt-get install -y libgtk-3-dev
# for travis script and regression.py
- sudo apt-get install python3.6
# for testing_tools/regression/regression.py
- sudo apt-get install imagemagick
# for Qt backend
- sudo apt-get install -qq qt56base qt56svg
- ./testing_tools/ci-install.sh
# prepare custom Qt
- source /opt/qt56/bin/qt56-env.sh;
- if [ "$RESVG_QT_BACKEND" = true ]; then
source /opt/qt56/bin/qt56-env.sh;
fi
script: ./testing_tools/run-tests.py
env:
matrix:
......
#!/usr/bin/env bash
set -ex
# python 3.6 for travis script and regression.py
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt-get update -qq
sudo apt-get install python3.6
if [ "$RESVG_CAIRO_BACKEND" = true ]; then
sudo apt-get install -y libpango1.0-dev
# for capi/examples/cairo-*
sudo apt-get install -y libgtk-3-dev
fi
if [ "$RESVG_QT_BACKEND" = true ]; then
sudo add-apt-repository ppa:beineri/opt-qt562-trusty -y
sudo apt-get update -qq
sudo apt-get install -qq qt56base qt56svg
fi
......@@ -94,15 +94,13 @@ if 'RESVG_CAIRO_BACKEND' in os.environ:
exit(1)
# try to build with all backends
with cd('tools/rendersvg'):
run(['cargo', 'build', '--features', 'cairo-backend qt-backend'], check=True)
# run tests and build examples
run(['cargo', 'test', '--all-features'], check=True)
run(['cargo', 'test', '--features', 'cairo-backend'], check=True)
run(['cargo', 'test', '--features', 'qt-backend'], check=True)
# # try to build with all backends
# with cd('tools/rendersvg'):
# run(['cargo', 'build', '--all-features'], check=True)
#
#
# # run tests and build examples
# run(['cargo', 'test', '--all-features'], check=True)
if 'RESVG_QT_BACKEND' in os.environ:
......@@ -112,6 +110,9 @@ if 'RESVG_QT_BACKEND' in os.environ:
with cd('capi'):
run(['cargo', 'build', '--features', 'qt-backend'], check=True)
# run tests and build examples
run(['cargo', 'test', '--features', 'qt-backend'], check=True)
# test Qt C-API wrapper
qmake_env = os.environ if local_test else dict(os.environ, QT_SELECT="5")
......@@ -140,6 +141,9 @@ if 'RESVG_CAIRO_BACKEND' in os.environ:
with cd('capi'):
run(['cargo', 'build', '--features', 'cairo-backend'], check=True)
# run tests and build examples
run(['cargo', 'test', '--features', 'cairo-backend'], check=True)
with cd('examples/cairo-capi'):
run(['make', 'clean'], check=True)
run(['make'], check=True)
......
......@@ -414,10 +414,10 @@ test!(preserve_id, false,
y='0'
width='1'
height='1'
xlink:href='data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAB3RJTUUH4gMLDwAj
rsLbtwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAABl0RVh0Q29tbWVudABDcmVhdGVk
IHdpdGggR0lNUFeBDhcAAAAGUExURQAA/xjQP14JpdQAAAABYktHRACIBR1IAAAA
xlink:href='data:image/png;base64, \
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAB3RJTUUH4gMLDwAj\
rsLbtwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAABl0RVh0Q29tbWVudABDcmVhdGVk\
IHdpdGggR0lNUFeBDhcAAAAGUExURQAA/xjQP14JpdQAAAABYktHRACIBR1IAAAA\
FklEQVR42mMAgvp/IJTAhgdB1ADVAgDvdAnxN1Ib1gAAAABJRU5ErkJggg=='/>
</svg>
");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment