forked from getnikola/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 1.44 KB
/
.travis.yml
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
before_install:
- "pip install --upgrade pip wheel pytest requests"
language: python
cache: apt
sudo: false
addons:
apt:
packages:
- language-pack-en-base
- enchant
python:
- "3.3"
- "3.4"
- "3.5"
matrix:
include:
- python: "3.5"
env: NMODE=flake8
env:
NMODE=nikola
install:
- "if [[ $NMODE == 'nikola' ]]; then wget https://github.com/getnikola/wheelhouse/archive/$(scripts/getpyver.py).zip; fi"
- "if [[ $NMODE == 'nikola' ]]; then unzip $(scripts/getpyver.py).zip; fi"
- "if [[ $NMODE == 'nikola' ]]; then pip install --use-wheel --no-index --find-links=wheelhouse-$(scripts/getpyver.py short) lxml Pillow; fi"
- "if [[ $NMODE == 'nikola' ]]; then pip install git+https://github.com/getnikola/nikola.git#egg=Nikola; fi"
- "if [[ $NMODE == 'nikola' ]]; then find v7/*/ | grep -v import_tumblr | grep -v wiki | grep 'requirements.txt' | xargs cat | sort | uniq | xargs pip install && true; fi"
- "if [[ $NMODE == 'flake8' ]]; then pip install flake8; fi"
script:
- "if [[ $NMODE == 'nikola' ]]; then py.test tests/; fi"
- "if [[ $NMODE == 'flake8' ]]; then flake8 v*/; fi"
notifications:
irc:
channels:
- "chat.freenode.net#nikola"
template:
- "[PLUGINS] %{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "[PLUGINS] Change view: %{compare_url}"
- "[PLUGINS] Build details: %{build_url}"
skip_join: true
use_notice: true