Skip to content

Commit

Permalink
[tools] Fix travis workflow by using npm link for dev branches
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored and tonyganch committed Jul 11, 2016
1 parent 5be0e4f commit 8aaa5d1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
language: node_js

node_js:
- "iojs"
- "0.10"
- "0.11"
- "0.12"
- "1.8"
- "2.5"
- "3.3"
- "4.2"

before_install:
- ./scripts/beforeinstall.sh

matrix:
allow_failures:
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"scripts": {
"build": "./scripts/build.sh",
"coverage": "./scripts/coverage.sh",
"postinstall": "./scripts/postinstall.sh",
"test": "./scripts/build.sh && ./scripts/test.sh",
"watch": "./scripts/watch.sh"
}
Expand Down
6 changes: 6 additions & 0 deletions scripts/beforeinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
git clone https://github.com/tonyganch/gonzales-pe.git
cd gonzales-pe && git checkout dev && npm i && npm run build && npm link && cd ..
git clone https://github.com/csscomb/core.git csscomb-core
cd csscomb-core && git checkout dev && npm link gonzales-pe && npm i && npm run build && npm link && cd ..
npm link gonzales-pe
npm link csscomb-core
1 change: 0 additions & 1 deletion scripts/postinstall.sh

This file was deleted.

0 comments on commit 8aaa5d1

Please sign in to comment.