branches:
  only: src
language: python
python: "2.7"
sudo: false
env:
  global:
    secure: QXXzxugLtvm8LnOwUmOsmoq/Utainfdkf+oAhS84rpF446cEsdEeL5L3ppeGWeRNVwrPhami41eMtVtympI3GpYUICvr5cP+GzYOg0Sus6Um+POASKx5fDUnZqQgINVxuU5DgfJZnDQtODtFY7hj3BTM7DAxRhffbiXdJ70SrlU=
cache: pip
install:
  - pip install -r requirements.txt
  - gem install sass
script: pelican -s publishconf.py
after_success: bash deploy.sh

branches:
  only: src
language: python
python: "2.7"
sudo: false
env:
  global:
    secure: QXXzxugLtvm8LnOwUmOsmoq/Utainfdkf+oAhS84rpF446cEsdEeL5L3ppeGWeRNVwrPhami41eMtVtympI3GpYUICvr5cP+GzYOg0Sus6Um+POASKx5fDUnZqQgINVxuU5DgfJZnDQtODtFY7hj3BTM7DAxRhffbiXdJ70SrlU=
cache: pip
before_script: gem install sass
script: pelican -s publishconf.py
after_success: bash deploy.sh

Work around Travis' caching limitations
Work around Travis' caching limitations

If the default `install` directive is overridden, `cache: pip` will not
actually cache PyPI packages (see travis-ci/travis-ci#3239). Moving the
installation of the Sass gem to `before_script` allows for the default
`install` directive to be used.
