Add travis integration

This commit is contained in:
Willian Justen
2016-03-25 00:05:03 -03:00
parent eb1e9ce673
commit e66f9143cf
4 changed files with 46 additions and 0 deletions

17
.travis.yml Normal file
View File

@@ -0,0 +1,17 @@
language: ruby
rvm:
- 2.2
before_script:
- bundle
- chmod +x ci_script.sh
script: ./ci_script.sh
branches:
only:
- master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer

3
Gemfile Normal file
View File

@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'awesome_bot'

19
Gemfile.lock Normal file
View File

@@ -0,0 +1,19 @@
GEM
remote: https://rubygems.org/
specs:
awesome_bot (1.7.1)
faraday (~> 0.9.2)
parallel (~> 1.6.1)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
multipart-post (2.0.0)
parallel (1.6.2)
PLATFORMS
ruby
DEPENDENCIES
awesome_bot
BUNDLED WITH
1.11.2

7
ci_script.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e # halt script on error
for file in topics/*.md
do
bundle exec awesome_bot $file --allow-redirect --set-timeout 10
done