Skip to content

Commit

Permalink
travis karma test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhill committed Apr 28, 2015
1 parent 517ced9 commit 4e31eaf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
Expand Up @@ -18,16 +18,29 @@ branches:

email: kevinkhill@gmail.com

cache:
directories:
- vendor
- node_modules

before_install:
- npm config set spin false

install:
- npm install

before_script:
- echo 'date.timezone = "America/Los_Angeles"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- mkdir -p build/logs
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- composer install --no-progress
- npm install

script:
- php -i | grep timezone
#- php -i | grep timezone
- phpunit -c configs/phpunit.xml.dist
- gulp test
- npm test

after_script:
- php vendor/bin/coveralls
2 changes: 1 addition & 1 deletion configs/karma.conf.js
Expand Up @@ -56,7 +56,7 @@ module.exports = function(config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS', 'Chrome'],
browsers: ['Firefox', 'Chrome'],


// Continuous Integration mode
Expand Down
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -15,6 +15,7 @@
"jasmine-core": "^2.2.0",
"karma": "^0.12.31",
"karma-chrome-launcher": "^0.1.8",
"karma-firefox-launcher": "^0.1.4",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4",
"sh": "0.0.3",
Expand All @@ -26,5 +27,8 @@
},
"bugs": {
"url": "https://github.com/kevinkhill/lavacharts/issues"
},
"scripts": {
"test": "./node_modules/.bin/karma start --browsers Firefox --single-run"
}
}

0 comments on commit 4e31eaf

Please sign in to comment.