# kate: indent-width 2;
-language: python
matrix:
include:
- - python: 3.4
+ - language: python
+ python: 3.4
env:
+ - WITH_THEME=ON
- WITH_DOXYGEN=OFF
+ - WITH_NODE=OFF
- JOBID=py34
- - python: 3.5
+ - language: python
+ python: 3.5
env:
+ - WITH_THEME=ON
- WITH_DOXYGEN=OFF
+ - WITH_NODE=OFF
- JOBID=py35
- - python: 3.6
+ - language: python
+ python: 3.6
env:
+ - WITH_THEME=ON
- WITH_DOXYGEN=ON
+ - WITH_NODE=OFF
- JOBID=py36
+ - language: node_js
+ node_js: 8
+ env:
+ - WITH_THEME=OFF
+ - WITH_DOXYGEN=OFF
+ - WITH_NODE=ON
+ - JOBID=js
install:
- # 2.10 has some weird behavior, putting a lot of empty lines into the output
- - pip install jinja2==2.9.6
- - pip install pelican Pyphen Pillow coverage codecov
+ # Jinja 2.10 has some weird behavior, putting a lot of empty lines into the
+ # output
+ - if [ "$WITH_THEME" == "ON" ]; then pip install jinja2==2.9.6 pelican Pyphen Pillow coverage codecov; fi
+ - if [ "$WITH_NODE" == "ON" ]; then npm install istanbul codecov; fi
# Needed for doxygen binaries
- - mkdir -p $HOME/bin && export PATH=$HOME/bin:$PATH
+ - if [ "$WITH_DOXYGEN" == "ON" ]; then mkdir -p $HOME/bin && export PATH=$HOME/bin:$PATH; fi
# Download newer Doxygen, as I don't want to care for the old bugs
- if [ "$WITH_DOXYGEN" == "ON" ] && [ ! -f $HOME/bin/doxygen ]; then wget "http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.13.linux.bin.tar.gz" && tar -xzf doxygen-1.8.13.linux.bin.tar.gz && cp doxygen-1.8.13/bin/doxygen $HOME/bin && doxygen -v; fi
script:
# Test the theme. No code coverage there.
- - cd $TRAVIS_BUILD_DIR/pelican-theme && python -m unittest
+ - if [ "$WITH_THEME" == "ON" ]; then cd $TRAVIS_BUILD_DIR/pelican-theme && python -m unittest; fi
# Test plugins. Math plugin is not tested as dvisvgm on 14.04 is unusable.
- - cd $TRAVIS_BUILD_DIR/pelican-plugins && coverage run -m unittest && cp .coverage ../.coverage.plugins
+ - if [ "$WITH_THEME" == "ON" ]; then cd $TRAVIS_BUILD_DIR/pelican-plugins && coverage run -m unittest && cp .coverage ../.coverage.plugins; fi
# Test doxygen theme. Math rendering is not tested as dvisvgm on 14.04 is
# unusable.
- if [ "$WITH_DOXYGEN" == "ON" ]; then cd $TRAVIS_BUILD_DIR/doxygen && coverage run -m unittest && cp .coverage ../.coverage.doxygen; fi
+ # Test client doxygen JS
+ - if [ "$WITH_NODE" == "ON" ]; then cd $TRAVIS_BUILD_DIR && istanbul cover doxygen/test/test-search.js; fi
+
# Cache the downloaded doxygen
cache:
directories:
on_start: never
after_success:
- - cd $TRAVIS_BUILD_DIR && coverage combine && codecov
+ - if [ "$WITH_THEME" == "ON" ] || [ "$WITH_DOXYGEN" == "ON" ]; then cd $TRAVIS_BUILD_DIR && coverage combine && codecov; fi
+ - if [ "$WITH_NODE" == "ON" ]; then cd $TRAVIS_BUILD_DIR && codecov; fi