-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
59 lines (52 loc) · 1.2 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
dist: focal
branches:
only:
- master
addons:
postgresql: '12'
apt:
update: true
packages:
- postgresql-12-postgis-3
jobs:
include:
- stage: Test Python 3.9
language: python
python: '3.9'
install:
- pip install -e .[dev,prod]
script:
- pytest
- stage: Test Python 3.10
language: python
python: '3.10'
install:
- pip install -e .[dev,prod]
script:
- pytest
- stage: Test Python 3.11
language: python
python: '3.11'
install:
- pip install -e .[dev,prod]
script:
- pytest
- stage: Test Python 3.12
language: python
python: '3.12'
install:
- pip install -e .[dev,prod]
script:
- pytest
- stage: Markdown link checks
language: node_js
node_js: 18
script:
- npm install --global remark-cli remark-validate-links
- remark -u validate-links .
- |
export FAILURE_THRESHOLD=0
export warnings=`remark -u validate-links . 2>&1 | grep warning | grep "Link to unknown" | wc -l`
if [ $warnings -gt $FAILURE_THRESHOLD ]; then
exit 1;
fi