Skip to content

Commit e44a6b9

Browse files
committed
Added travis configuration
1 parent 7e4509d commit e44a6b9

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: ruby
2+
rvm:
3+
- 2.3
4+
5+
before_script:
6+
- chmod +x ./script/cibuild # or do this locally and commit
7+
8+
script: ./script/cibuild
9+
10+
branches:
11+
only:
12+
- master
13+
14+
env:
15+
global:
16+
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
17+
18+
sudo: false # route your build to the container-based infrastructure for a faster build

Gemfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source "https://rubygems.org"
2+
3+
gem "jekyll"
4+
gem "jekyll-redirect-from"
5+
gem "jekyll-paginate"
6+
gem "jekyll-sitemap"
7+
gem "jekyll-feed"
8+
gem "html-proofer"

_config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ theme: jekyll-theme-slate
22
title: EnviroMonitor - Community and Open Source air quality monitoring
33
description: EnviroMonitor is a community and Open Source project to help monitor air quality around the world. We measure PM2.5 and PM10 as well as temperature, humidity and barometric pressure. Data is collected at global site and can be sent to WeatherUnderground.
44
show_downloads: false
5-
google_analytics: UA-89513736-1
5+
google_analytics: UA-89513736-1
6+
exclude:
7+
- vendor

script/cibuild

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -e # halt script on error
3+
4+
bundle exec jekyll build
5+
bundle exec htmlproofer ./_site

0 commit comments

Comments
 (0)