summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 7a370dab3c8a035a4953c5b00c3b7530a2ba183a (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
language: cpp
os:
    - linux-ppc64le
    - linux
dist: xenial
compiler:
  - gcc
  - clang
sudo: required

addons:
    apt:
        update: true
        packages:
            - texlive
            - texlive-generic-recommended
            - texlive-extra-utils
            - texlive-latex-extra
            - texlive-font-utils
            - ghostscript
            - libxml2-utils
            - cmake
            - cmake-data

jobs:
    include:
        - os: osx
          compiler: clang

before_script:
    - if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
        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;

        conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan;
        printf "[requires] \nlibxml2/2.9.8@bincrafters/stable \nQt/5.11.1@bincrafters/stable" >> conanfile.txt;
        conan install . -g virtualrunenv;
        source activate_run.sh;
      fi;

script:
    - mkdir build
    - cd build
    - cmake -G "Unix Makefiles" -Dbuild_doc=ON -Dbuild_wizard=ON ..
    - make
    - make tests
    - make docs