blob: 9a24d23de08e255fb6618c2e727443ce4bd6a5ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
language: cpp
os:
- linux
- linux-ppc64le
dist: xenial
compiler:
- gcc
- clang
addons:
apt:
update: true
packages:
- texlive
- texlive-generic-recommended
- texlive-extra-utils
- texlive-latex-extra
- texlive-font-utils
- ghostscript
- cmake
- cmake-data
jobs:
include:
- os: osx
compiler: clang
before_script:
- if [ "${TRAVIS_OS_NAME}" == "linux" ] || [ "${TRAVIS_OS_NAME}" == "linux-ppc64le" ]; then
conanQt="";
conanQtOptions="";
fi;
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
conanQt="qt/5.11.3@bincrafters/stable";
conanQtOptions="qt:shared=False";
fi;
- if [ "${TRAVIS_OS_NAME}" == "linux" ] || [ "${TRAVIS_OS_NAME}" == "linux-ppc64le" ]; then
pip install --quiet --user conan;
fi;
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
pip install --upgrade pip;
sudo mkdir -p /usr/local/man;
sudo chown -R "${USER}:admin" /usr/local/man;
pip install --quiet conan;
export HOMEBREW_NO_AUTO_UPDATE=1;
brew install ghostscript;
travis_wait brew cask install mactex-no-gui;
curl -O -L http://mirrors.ctan.org/support/epstopdf.zip;
unzip epstopdf.zip;
mkdir -p /Users/travis/Library/TeX/texbin/;
mv epstopdf/epstopdf.pl /Users/travis/Library/TeX/texbin/epstopdf;
chmod a+x /Users/travis/Library/TeX/texbin/epstopdf;
rm -rf epstopdf*;
export PATH=/Users/travis/Library/TeX/texbin:/Library/TeX/texbin:$PATH;
fi;
- |
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan;
printf "[requires]
libxml2/2.9.8@bincrafters/stable
libiconv/1.15@bincrafters/stable
$conanQt
[options]
$conanQtOptions" >> conanfile.txt;
conan install . -g virtualrunenv --build missing --update;
source activate_run.sh;
script:
- mkdir build
- cd build
- cmake -G "Unix Makefiles" -Dbuild_doc=ON -Dbuild_wizard=ON ..
- make
- make tests
- make docs
|