Skip to content

Commit

Permalink
Update travis build settings for percy
Browse files Browse the repository at this point in the history
  • Loading branch information
barrymcgee committed Feb 8, 2017
1 parent c8230ff commit 2606629
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
20 changes: 8 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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/
10 changes: 1 addition & 9 deletions gulp/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/'));
Expand Down

0 comments on commit 2606629

Please sign in to comment.