chore(ci): #51 Fix jpm binary path for travis

This commit is contained in:
k88hudson 2016-02-05 11:25:43 -05:00
Родитель 8731b8e9f9
Коммит 6f76b7d905
3 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -12,7 +12,10 @@ before_script:
- ./node_modules/.bin/mozilla-download --branch mozilla-central --product firefox firefox
- export FIREFOX_PATH=$TRAVIS_BUILD_DIR/firefox/firefox
- export PATH=$FIREFOX_PATH:$PATH
- export JPM_FIREFOX_BINARY=`which firefox`
- firefox -v
- echo $JPM_FIREFOX_BINARY
script:
- npm run travis

Просмотреть файл

@ -79,13 +79,13 @@
"firefox": "jpm run -b nightly",
"test": "npm-run-all test:*",
"test:lint": "eslint .",
"test:jpm": "jpm test",
"test:jpm": "jpm test -b nightly",
"test:karma": "karma start",
"tdd": "karma start --no-single-run",
"package": "jpm xpi && mv @activity-streams-$npm_package_version.xpi dist/activity-streams-$npm_package_version.xpi",
"travis": "npm-run-all travis:*",
"travis:eslint": "npm run test:lint",
"travis:jpm": "jpm test -b $FIREFOX_PATH",
"travis:jpm": "jpm test -b $JPM_FIREFOX_BINARY -v",
"travis:karma": "karma start --reporters mocha,coverage,coveralls",
"precommit": "npm run test:lint && npm run yamscripts",
"help": "yamscripts help",

Просмотреть файл

@ -27,7 +27,7 @@ scripts:
# test:lint: Run eslint
lint: eslint .
# test:jpm: Run jpm tests
jpm: jpm test
jpm: jpm test -b nightly
# test:karma: Run content tests only
karma: karma start
@ -40,7 +40,7 @@ scripts:
# This is for ci
travis:
eslint: =>test:lint
jpm: jpm test -b $FIREFOX_PATH
jpm: jpm test -b $JPM_FIREFOX_BINARY -v
karma: karma start --reporters mocha,coverage,coveralls
# This is just to make sure we don't make commits with failing tests