1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

use travis for ci to verify builds work before merging

This commit is contained in:
Ben Balter 2013-07-15 16:25:44 -04:00
parent 3443bd014d
commit 11f926438e
3 changed files with 18 additions and 0 deletions

8
.travis.yml Normal file
View File

@ -0,0 +1,8 @@
#bootstrap and build
before_script: "./script/bootstrap"
script: "./script/cibuild"
#environment
language: ruby
rvm:
- 1.9.3

View File

@ -3,6 +3,7 @@
set -e
echo "bundling installin'"
gem install bundler
bundle install
echo "npm installin'"

9
script/cibuild Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
echo "compiling javascript..."
./node_modules/.bin/coffee -c javascripts/app.coffee
echo "building the site..."
bundle exec jekyll build --trace