mirror of
https://github.com/EbookFoundation/free-programming-books.git
synced 2024-12-19 01:46:12 +00:00
e42b4701c4
* add awesome_bot to check urls * allow dupes * make url checking dependent on commit message * add web.archive.org to whitelist cuz awesome_bot is having trouble with those links * fix travis.yaml * check urls * need ruby * another site to avoid * check urls * make regex more generic * sudo deprecated * make travis linter happy check url * try skip results check url * timeout was what was killing us check url * testing fixing urls check url * dont allow timeout check url * testing timeout check url * put fpb back check url * enable to check_urls on arbitrary files check_urls:free-programming-books.md * try again check_urls:free-programming-books.md * test again check_urls:free-programming-books.md * travis doesnt like : check_urls=free-programming-books.md * allow arbitrary number of files to be checked check_urls=free-programming-books.md * woops forgot to fix the trigger regex check_urls=free-programming-books.md free-programming-books-en.md * use for loop instead of xargs check_urls=free-programming-books.md free-programming-books-en.md * add documentation
25 lines
572 B
YAML
25 lines
572 B
YAML
language: shell
|
|
dist: xenial
|
|
os: linux
|
|
|
|
jobs:
|
|
include:
|
|
-
|
|
language: node_js
|
|
node_js:
|
|
- 6
|
|
before_script:
|
|
- npm install -g free-programming-books-lint
|
|
script:
|
|
- fpb-lint .
|
|
|
|
-
|
|
language: ruby
|
|
if: commit_message =~ /check_urls=/
|
|
rvm: 2.4.1
|
|
before_script:
|
|
- gem install awesome_bot
|
|
script:
|
|
- INPUT=$(echo $TRAVIS_COMMIT_MESSAGE | awk -F= '{print $2}')
|
|
- for i in $INPUT; do echo "processing $i"; awesome_bot $i --allow-redirect --allow-dupe --skip-save-results; done
|