forked from fastai/fastai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checklink-azure.yml
34 lines (27 loc) · 973 Bytes
/
checklink-azure.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
# This pipeline is designed to run as a cron-job and not triggered by every build - once a day is probably enough
jobs:
- job: 'docs_websites_linkchecker'
pool:
vmImage: 'Ubuntu-16.04'
steps:
- script: |
echo "Installing prerequisites"
sudo apt install w3c-linkchecker
displayName: 'Installing prerequisites, prepare for checking'
continueOnError: false
# let this script continue on error since we want to run them all
- script: |
echo "Testing course-v3"
cd tools/checklink/
./checklink-course-v3.sh
./run-checker.sh course-v3
displayName: 'link checker for course-v3.fast.ai'
continueOnError: true
# let this last script not continue on error so that the final status will be failed if it fails
- script: |
echo "Testing docs"
cd tools/checklink/
./checklink-docs.sh
./run-checker.sh docs
displayName: 'link checker for docs.fast.ai'
continueOnError: false