Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(travis): Fix build (xvfb) #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
language: node_js

node_js:
- 4.1
- 6

# Ubuntu 14 Trusty is old, and Travis might stop supporting it at some point,
# so we need to figure out how to get xvfb working on Ubuntu 16 and newer:
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#sts=Using%20xvfb%20to%20Run%20Tests%20That%20Require%20a%20GUI%20#
dist: trusty

before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

before_script:
- npm install -g gulp
- npm install -g gulp-cli

script:
- npm install
- gulp build
- gulp test
- npm run build
- npm run test

deploy:
- provider: s3
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var chalk = require('chalk'),
pump = require('pump'),
rename = require('gulp-rename'),
runSequence = require('run-sequence'),
Server = require('karma').Server;
Server = require('karma').Server,
stylish = require('jshint-stylish'),
uglify = require('gulp-uglify'),
gulpGlobs = require('./gulpGlobs');
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Gfycat js embed",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "gulp build",
"test": "gulp test"
},
"repository": {
"type": "git",
Expand Down