aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 5980c02acfd4896d0b846eeb8853986ab4c93c38 (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
branches:
  except:
    - master
language: python
python:
  - "3.4"
  - "3.5"
matrix:
  allow_failures:
    - python: "nightly"
before_install:
  - sudo add-apt-repository -y ppa:kalakris/cmake
  - sudo apt-get update
  - sudo apt-get install -y cmake
  # install pandoc
  - wget https://github.com/jgm/pandoc/releases/download/1.13.2/pandoc-1.13.2-1-amd64.deb
  - sudo dpkg -i pandoc-1.13.2-1-amd64.deb
  # install tidy-html5
  - git clone https://github.com/htacg/tidy-html5.git
  - cd tidy-html5/build/cmake
  - cmake ../..
  - make
  - sudo make install
  - cd ../../..
install:
  - pip install -r requirements.txt
script:
  - python pyblog generate
  - find build -path 'build/google*.html' -o -name '*.html' -print0 | xargs -0 tidy -q -e --gnu-emacs yes