Skip to content

Commit

Permalink
chore(.travis): switch to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Apr 28, 2017
1 parent 93176a6 commit 48be51c
Show file tree
Hide file tree
Showing 3 changed files with 1,051 additions and 462 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_js:
- v6.10

install:
- npm install
- yarn install

before_install:
- "export DISPLAY=:99.0"
Expand All @@ -29,11 +29,9 @@ addons:
- google-chrome-stable

script:
- npm run pretest
- npm run build
- npm run test:headless
- yarn run pretest
- yarn run build
- yarn run test:headless
- travis_retry karma start --single-run --reporters mocha karma.conf.js

cache:
directories:
- node_modules
cache: yarn
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"scripts": {
"babel:build": "babel src -d js --source-maps",
"babel:watch": "babel src -d js --watch --source-maps",
"build": "npm run hb:build && npm run build:highlight && npm run babel:build && npm run copydeps && npm run build:respec-w3c-common",
"build:highlight": "cd node_modules/highlight.js/ && npm install && node ./tools/build.js -n xml javascript css http markdown json abnf && cd ../../",
"build": "yarn run hb:build && yarn run build:highlight && yarn run babel:build && yarn run copydeps && yarn run build:respec-w3c-common",
"build:highlight": "cd node_modules/highlight.js/ && yarn install && node ./tools/build.js -n xml javascript css http markdown json abnf && cd ../../",
"build:respec-w3c-common": "./tools/builder.js --profile=w3c-common",
"copydeps": "node ./tools/copydeps.js",
"handlebars": "handlebars",
Expand All @@ -65,17 +65,17 @@
"jscs:fix": "jscs --esnext --fix tests",
"jshint": "jshint karma.conf.js tests tools",
"karma": "karma start --single-run",
"prepublish": "npm run build:highlight && npm run snyk-protect && npm run copydeps && npm run babel:build",
"pretest": "npm run jshint && npm run jscs",
"server": "npm start",
"prepublish": "yarn run build:highlight && yarn run snyk-protect && yarn run copydeps && yarn run babel:build",
"pretest": "yarn run jshint && yarn run jscs",
"server": "yarn start",
"snyk-protect": "snyk protect",
"start": "http-server",
"test": "npm run test:headless && npm run test:karma",
"test:appveyor": "npm run pretest",
"test": "yarn run test:headless && yarn run test:karma",
"test:appveyor": "yarn run pretest",
"test:build": "mocha ./tests/test-build.js",
"test:headless": "node ./tests/headless.js",
"test:karma": "npm run karma",
"test:travis": "npm run pretest && npm run test:build && karma start --single-run --reporters progress karma.conf.js && npm run test:headless"
"test:karma": "yarn run karma",
"test:travis": "yarn run pretest && yarn run test:build && karma start --single-run --reporters progress karma.conf.js && yarn run test:headless"
},
"dependencies": {
"colors": "^1.1.2",
Expand Down

0 comments on commit 48be51c

Please sign in to comment.