Skip to content

Commit

Permalink
Update CI yml files (#716)
Browse files Browse the repository at this point in the history
* Update CI yml files

+ Upgrade yarn
+ remove yarn bootstrap (unnecessary)
+ update circle ci yarn cache

* Add current node_modules/.bin to PATH for circleci
  • Loading branch information
boopathi committed Nov 7, 2017
1 parent 7e07ecf commit 554cd91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ node_js:
- '4'

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.0.2
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
- export PATH=$HOME/.yarn/bin:$PATH

before_script:
- yarn run bootstrap && yarn run build
- yarn build

script:
- if [ -n "${LINT-}" ]; then yarn run lint ; fi
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cache:

install:
- ps: Install-Product node $env:nodejs_version x64
- npm install -g yarn@1.0.2
- npm install -g yarn@1.3.2
- set PATH=%APPDATA%\npm;%PATH%
- yarn

Expand Down
6 changes: 4 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ machine:
node:
version: "node"
environment:
PATH: $PATH:./node_modules/.bin
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:./node_modules/.bin"

checkout:
post:
Expand All @@ -14,8 +14,10 @@ checkout:
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
post:
- yarn run bootstrap && yarn run build
- yarn build

test:
override:
Expand Down

0 comments on commit 554cd91

Please # to comment.