A fork of hyde, the static site generation. Some patches will be pushed upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
1.1 KiB

  1. language: python
  2. python:
  3. - "2.7"
  4. # Cache pip requirements for faster builds
  5. cache:
  6. directories:
  7. - $HOME/.cache/pip
  8. install:
  9. - sudo apt-get purge -y nodejs
  10. - sudo apt-get install -qqy python-software-properties
  11. - sudo add-apt-repository -y ppa:chris-lea/node.js
  12. - sudo apt-get -qq update
  13. - sudo apt-get install -qqy nodejs optipng jpegoptim libjpeg-progs asciidoc libxml2-dev libxslt1-dev libpcre3-dev
  14. - sudo apt-get install -qqy libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
  15. # Ubuntu 14
  16. # - sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
  17. # JS dependencies
  18. - sudo npm install -g sass@0.5.0 requirejs@2.1 stylus@0.51 uglify-js@2.4.23 less@2.5.1
  19. # Python test requirements
  20. - pip install tox
  21. # Run each tox environment separately
  22. env:
  23. - TOX_ENV=py27
  24. - TOX_ENV=pep8
  25. before_script:
  26. - export PYTHONPATH=$PYTHONPATH:/usr/share/asciidoc/
  27. script:
  28. - tox -e $TOX_ENV
  29. # Only build for the master branch
  30. # Note that this does not prevent pull request builds
  31. branches:
  32. only:
  33. master