From 260662926c94556e85f733003a7799cd9caab187 Mon Sep 17 00:00:00 2001 From: Barry McGee Date: Wed, 8 Feb 2017 14:31:41 +0000 Subject: [PATCH] Update travis build settings for percy --- .travis.yml | 20 ++++++++------------ gulp/styles.js | 10 +--------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index cffaa1429..1e21482af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,18 @@ language: node_js node_js: - "6.6.0" +before_install: + - rvm install 2.2.5 +install: + - gem install jekyll + - gem install percy-cli + - npm install before_script: - - npm i - node_modules/gulp/bin/gulp.js build script: + - jekyll build - node_modules/gulp/bin/gulp.js test + - percy snapshot --widths "375,768,1280" _jekyll/_site/ --baseurl "/vanilla-framework" notifications: irc: channels: @@ -14,14 +21,3 @@ notifications: on_success: change on_failure: always on_success: change - -language: ruby -rvm: 2.1.1 -before_script: - - npm i - - node_modules/gulp/bin/gulp.js sass:jekyll - - gem install jekyll - - gem install percy-cli -script: - - jekyll build - - percy snapshot --baseurl "/vanilla-framework" --widths "375,768,1280" _jekyll/_site/ diff --git a/gulp/styles.js b/gulp/styles.js index 005df9c2d..4f03634b0 100644 --- a/gulp/styles.js +++ b/gulp/styles.js @@ -28,15 +28,6 @@ gulp.task('sass:develop', function() { .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1')) .pipe(sourcemaps.write('maps/')) .pipe(gulp.dest('build/css/')) - .pipe(gulp.dest('jekyll/css/')); -}); - -// Build Sass for visual regression testing -gulp.task('sass:jekyll', function() { - return gulp.src(sassPath) - .pipe(sass({ errLogToConsole: true })) - .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1')) - .pipe(gulp.dest('_jekyll/_site/build/css/')); }); // Build Sass for production @@ -49,6 +40,7 @@ gulp.task('sass:build', function() { onError: throwSassError })) .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1')) + .pipe(gulp.dest('build/css/')) .pipe(cssnano()) .pipe(rename({suffix: '.min'})) .pipe(gulp.dest('build/css/'));