Skip to content

Commit

Permalink
RFC: chore(ci): switch to yarn (react-boilerplate#1415)
Browse files Browse the repository at this point in the history
* chore(ci): switch to yarn

* Remove 'yarn version' because: 'Can't answer a question unless a user TTY'
  • Loading branch information
Dattaya authored and gihrig committed Jan 12, 2017
1 parent 02c8cbb commit 33aa7b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ node_js:

script:
- node ./internals/scripts/generate-templates-for-linting
- npm run build

install:
- npm i -g npm@latest
- npm install
- yarn run build

before_install:
- export CHROME_BIN=chromium-browser
Expand All @@ -22,8 +18,9 @@ notifications:
email:
on_failure: change

after_success: 'npm run coveralls'
after_success: 'yarn run coveralls'

cache:
yarn: true
directories:
- node_modules
9 changes: 4 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ install:
- choco install -y googlechrome
# Install the latest stable version of Node
- ps: Install-Product node $env:nodejs_version
- npm -g install npm
- set PATH=%APPDATA%\npm;%PATH%
- npm install
- yarn

# Disable automatic builds
build: off
Expand All @@ -36,16 +35,16 @@ build: off
test_script:
# Output debugging info
- node --version
- npm --version
- node ./internals/scripts/generate-templates-for-linting
# run build and run tests
- npm run build
- yarn run build

# Cache node_modules for faster builds
cache:
- "%LOCALAPPDATA%\\Yarn"
- node_modules -> package.json

# remove, as appveyor doesn't support secure variables on pr builds
# so `COVERALLS_REPO_TOKEN` cannot be set, without hard-coding in this file
#on_success:
#- npm run coveralls
#- yarn run coveralls

0 comments on commit 33aa7b1

Please sign in to comment.