forked from getnikola/nikola
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (60 loc) · 1.81 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
before_install:
- pip install --upgrade pip wheel
language: python
cache:
- apt
- pip
dist: trusty
sudo: false
addons:
apt:
packages:
- language-pack-en-base
- language-pack-pl-base
python:
- '3.4'
- '3.5'
- '3.6'
matrix:
include:
- os: osx
language: generic
env: NMODE=nikola OS=macOS
python: '3.6'
before_install:
- brew update
- brew upgrade python
- pip3 install virtualenv
- python3 -m virtualenv nikola-tests-venv
- source nikola-tests-venv/bin/activate
- pip install --upgrade pip wheel
- python: '3.6'
env: NMODE=flake8
env:
matrix:
- NMODE=nikola
global:
secure: GqUDW0j4Ay8pS9tS/g5JBYGtgBG0g0oD2g4X9JXgVchiFj3GIRL+dwiXpgx3LELy7nCWF3EzClFxxMdVqqxizQ/I8xqiA0XL/rf5z/y+9d9nmKOxV8SV73n0eCgsHWkbdSLJ6MKs6s0Trlz9jLu/P+Bhfu2ttqkOH8WttfEf3VE=
install:
- if [[ $NMODE == 'nikola' ]]; then pip install -Ur requirements-tests.txt; if [[ "$?" == '1' ]]; then cat /home/travis/.pip/pip.log; false; fi; fi
- if [[ $NMODE == 'nikola' ]]; then pip install .; fi
- if [[ $NMODE == 'flake8' ]]; then pip install flake8 pydocstyle; fi
script:
- if [[ $NMODE == 'nikola' ]]; then py.test tests/; fi
- if [[ $NMODE == 'nikola' ]]; then nikola; fi
- if [[ $NMODE == 'nikola' ]]; then nikola help; fi
- if [[ $NMODE == 'nikola' ]]; then scripts/baseline.sh check; fi
- if [[ $NMODE == 'nikola' ]]; then scripts/codacy_coverage.sh; fi
- if [[ $NMODE == 'flake8' ]]; then flake8 nikola/ tests/; fi
- if [[ $NMODE == 'flake8' ]]; then pydocstyle --count --match-dir='(?!^\\.)(?!data).*' nikola/; fi
after_success:
notifications:
irc:
channels:
- chat.freenode.net#nikola
template:
- '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}'
- 'Change view: %{compare_url}'
- 'Build details: %{build_url}'
skip_join: true
use_notice: true