diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..c8c2c840 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +sudo: required +dist: trusty + +language: ruby +rvm: + - "2.2.3" +node_js: + - "5.1" + +cache: + bundler: true + directories: + - node_modules + - bower_components + - _site/media/gen + +addons: + apt: + packages: + - libgsl0ldbl + - libgsl0-dev + +before_script: "_ci/setup.sh" +script: "_ci/build.sh" + +deploy: + skip_cleanup: true + provider: script + script: "_ci/deploy.sh" + on: + branch: master diff --git a/Gemfile b/Gemfile index 5c28dc9b..5dd0235b 100644 --- a/Gemfile +++ b/Gemfile @@ -16,7 +16,7 @@ group :development do end group :lsi do - gem 'gsl' gem 'narray' + gem 'gsl' gem 'classifier-reborn' end diff --git a/README.md b/README.md index 8014f653..34708455 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ kremalicious3 > [kremalicious.com](http://kremalicious.com) based on [Jekyll](http://jekyllrb.com). Neat. -[ ![Codeship Status for kremalicious/kremalicious3](https://codeship.com/projects/9fd79770-3c49-0133-6289-3ebbb4d77cd4/status?branch=master)](https://codeship.com/projects/102237) +[![Build Status](https://travis-ci.org/kremalicious/kremalicious3.svg?branch=master)](https://travis-ci.org/kremalicious/kremalicious3) [![Dependency Status](https://gemnasium.com/kremalicious/kremalicious3.svg)](https://gemnasium.com/kremalicious/kremalicious3) diff --git a/_ci/build.sh b/_ci/build.sh index 7701abda..2184ed02 100755 --- a/_ci/build.sh +++ b/_ci/build.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ $CI_BRANCH == "master" ]; then +if [ $TRAVIS_BRANCH == "master" ]; then gulp build --production else gulp build diff --git a/gulpfile.js b/gulpfile.js index 7ce548cc..790aa7da 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -402,7 +402,7 @@ gulp.task('deploy', function() { .pipe($.rename(function (path) { path.dirname = S3PATH + path.dirname; })) - .pipe(parallelize(publisher.publish({}, 'force'), 10)) + .pipe(parallelize(publisher.publish(), 50)) .pipe(publisher.sync()) // delete files in bucket that are not in local folder .pipe($.awspublish.reporter({ states: ['create', 'update', 'delete']