From 60b8db9cfa49344d72894217f99d7ad622544d98 Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Wed, 2 Aug 2017 23:50:07 -0400 Subject: [PATCH 1/4] add errors to README to force bad build --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 294b1b2a..cfccc7a7 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,8 @@ API | Description | Auth | HTTPS | Link | API | Description | Auth | HTTPS | Link | |---|---|---|---|---| | AniList | AniList Anime | `OAuth` | No | [Go!](http://anilist-api.readthedocs.io/en/latest/) | -| Jikan | Unofficial MyAnimeList API | No | Yes | [Go!](https://jikan.me) | -| Kitsu | Anime discovery platform | `OAuth` | Yes | [Go!](http://docs.kitsu.apiary.io/) | +| Jikan | unofficial MyAnimeList API | No | Yes | [Go!](https://jikan.me) | +| Kitsu |Anime discovery platform | `OAuth` | Yes | [Go!](http://docs.kitsu.apiary.io/) | | Studio Ghibli | Resources from Studio Ghibli films | No | Yes | [Go!](https://ghibliapi.herokuapp.com) | ### Anti-Malware @@ -87,15 +87,15 @@ API | Description | Auth | HTTPS | Link | ### Books API | Description | Auth | HTTPS | Link | |---|---|---|---|---| -| British National Bibliography | Books | No | No | [Go!](http://bnb.data.bl.uk/) | +|British National Bibliography | Books | No | No | [Go!](http://bnb.data.bl.uk/) | | Goodreads | Books | No | Yes | [Go!](https://www.goodreads.com/api) | | Google Books | Books | `OAuth` | Yes | [Go!](https://developers.google.com/books/) | ### Business API | Description | Auth | HTTPS | Link | |---|---|---|---|---| -| mailgun | Email Service | `apiKey` | Yes | [Go!](https://www.mailgun.com/) | -| markerapi | Trademark Search | No | No | [Go!](http://www.markerapi.com/) | +| mailgun | Email Service | `apikey` | Yes | [Go!](https://www.mailgun.com/) | +| markerapi | Trademark Search | No | no | [Go!](http://www.markerapi.com/) | ### Calendar API | Description | Auth | HTTPS | Link | From 504bd3d41718f8568307168fa076ee96c66002d6 Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Wed, 2 Aug 2017 23:54:15 -0400 Subject: [PATCH 2/4] add pipe to build_bot --- build/main.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/main.sh b/build/main.sh index b7b11493..9a3517ce 100755 --- a/build/main.sh +++ b/build/main.sh @@ -19,18 +19,19 @@ else fi echo "running format validation..." -./validate_format.rb $FORMAT_FILE +./validate_format.rb $FORMAT_FILE > format_results.txt if [[ $? != 0 ]]; then echo "format validation failed!" + cat format_results.txt | build_bot exit 1 else echo "format validation passed!" fi - echo "running link validation..." ./validate_links.rb $LINK_FILE if [[ $? != 0 ]]; then echo "link validation failed!" + echo "link(s) were unavailible during the build. Please verfiy that they are valid." | build_bot exit 1 else echo "link validation passed!" From 7a54d2af6fdf45d310e58a34fcaedf0264ef71dc Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Thu, 3 Aug 2017 10:33:06 -0400 Subject: [PATCH 3/4] update pip install for build-bot --- .travis.yml | 3 ++- build/main.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d24e391..3fbee404 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,11 @@ -language: node_js +language: python notifications: email: false before_install: - rvm install 2.4.0 install: - gem install httparty ruby-progressbar + - pip install build-bot before_script: - cd build script: diff --git a/build/main.sh b/build/main.sh index 9a3517ce..0d6759c6 100755 --- a/build/main.sh +++ b/build/main.sh @@ -22,7 +22,7 @@ echo "running format validation..." ./validate_format.rb $FORMAT_FILE > format_results.txt if [[ $? != 0 ]]; then echo "format validation failed!" - cat format_results.txt | build_bot + cat format_results.txt | build_bot.py exit 1 else echo "format validation passed!" @@ -31,7 +31,7 @@ echo "running link validation..." ./validate_links.rb $LINK_FILE if [[ $? != 0 ]]; then echo "link validation failed!" - echo "link(s) were unavailible during the build. Please verfiy that they are valid." | build_bot + echo "link(s) were unavailible during the build. Please verfiy that they are valid." | build_bot.py exit 1 else echo "link validation passed!" From 5b30b259e765e5835f3b7c5657310fc8a2597f5d Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Thu, 3 Aug 2017 10:37:41 -0400 Subject: [PATCH 4/4] add pip install requirements to build config --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 3fbee404..c5f36618 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,11 @@ notifications: email: false before_install: - rvm install 2.4.0 + - wget https://raw.githubusercontent.com/davemachado/build-bot/master/build_bot/requirements.txt install: - gem install httparty ruby-progressbar - pip install build-bot + - pip install -r requirements.txt before_script: - cd build script: