-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path.travis.yml
61 lines (56 loc) · 1.55 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
61
os: linux
dist: bionic
branches:
only:
- master
# Any develop (pre-release) branches, such as 'develop' or 'develop-ejb-0.4'
- /^develop(-.*)?$/
# Tags
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
cache:
npm: true
directories:
- $HOME/.cache/pip
env:
- TESTSUITE=main
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/36f1eecce4abd7708221
jobs:
allow_failures:
- env: TESTSUITE=ext
include:
- name: main
language: python # for mkdocs
python: "3.7"
before_install:
# Lock dependencies for branch builds
- |
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
export REQUIREMENTS_FILE=requirements.lock
else
export REQUIREMENTS_FILE=requirements.txt
fi
install:
- pip install --upgrade -r "$REQUIREMENTS_FILE" -r dev-requirements.txt --src 3rd-party
- nvm install 12 && nvm use 12
- npm install
- python -m mkdocs --version
- html5validator --version
script:
- python -m mkdocs build
- bash ./misc/lint.sh md
- bash ./misc/lint.sh html
- bash ./misc/lint.sh links
- bash ./misc/lint.sh cspell
after_script:
# Kill mkdocs server if it's still running
- bash ./misc/lint.sh kill
# Since external link checks may fail because of rate limits, unreliable
# connection etc., we allow this job to fail.
- name: external links
language: node_js
node_js: "12"
env: TESTSUITE=ext
script: npm run ext-links