Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Travis: Use OSX (and many more Karma browsers!) #17

Open
wants to merge 5 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 13 additions & 5 deletions .travis.yml
Expand Up @@ -3,10 +3,19 @@ language: node_js
node_js:
- 0.10

os:
- osx

before_install:
# **OS X**
# Likely unneeded: - brew update
- brew install caskroom/cask/brew-cask
- brew cask install google-chrome firefox
#
# **Linux**
# GUI for real browsers.
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
#- export DISPLAY=:99.0
#- sh -e /etc/init.d/xvfb start

branches:
only:
Expand All @@ -15,10 +24,9 @@ branches:
script:
# Verify all builds actually work.
- npm run-script build
- ./node_modules/.bin/gulp build:dev
- ./node_modules/.bin/gulp build:test
- ./node_modules/.bin/gulp build:all
# Run all checks.
- ./node_modules/.bin/gulp check:ci
- ./node_modules/.bin/gulp check:ci:osx
# Manually send coverage reports to coveralls.
# - First client result
# - Only server result
Expand Down
8 changes: 7 additions & 1 deletion gulpfile.js
Expand Up @@ -167,9 +167,13 @@ var _karmaAll = _karma({
});

gulp.task("karma:fast", _karmaFast);
gulp.task("karma:ci", _karma(KARMA_COV, {
gulp.task("karma:ci:linux", _karma(KARMA_COV, {
browsers: ["PhantomJS", "Firefox"]
}));
gulp.task("karma:ci:osx", _karma(KARMA_COV, {
browsers: ["PhantomJS", "Firefox", "Chrome", "Safari"]
}));
gulp.task("karma:ci", ["karma:ci:osx"]);
gulp.task("karma:all", _karmaAll);

gulp.task("test:frontend", ["clean:coverage:client"], _karmaFast);
Expand Down Expand Up @@ -348,4 +352,6 @@ gulp.task("dev", sequence(
));
gulp.task("prod", sequence(["watch:prod", "server", "server:sources"]));
gulp.task("build", sequence("clean:dist", "build:prod"));
gulp.task("build:all", sequence("clean:dist",
["build:prod", "build:dev", "build:test"]));
gulp.task("default", sequence("clean", ["build:dev", "build:test"], "check"));