Skip to content

Commit

Permalink
Yarn support AppVeyor & Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
denji committed Jan 17, 2017
1 parent 6e5f5e4 commit 36e010b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ matrix:
- node_js: "7.4"
env: LINT=1

cache:
yarn: true
directories:
- node_modules
- $HOME/.yarn-cache

notifications:
email: false

script:
- docker run -d --name mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=test -p 33306:3306 mysql:5.7
- docker run --link mysql:db -e CHECK_PORT=3306 -e CHECK_HOST=db giorgos/takis
- node --version
- npm --version
- if [ "$LINT" = "1" ]; then npm run lint; fi
- MYSQL_PORT=33306 npm run test:raw
- yarn --version
- if [ "$LINT" = "1" ]; then yarn run lint; fi
- MYSQL_PORT=33306 yarn run test:raw
7 changes: 4 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ services:

cache:
- node_modules
- "%LOCALAPPDATA%/Yarn"

install:
- ps: Install-Product node $env:nodejs_version
- npm install
- yarn install

build: off

Expand All @@ -30,8 +31,8 @@ before_test:
test_script:
- mysql --version
- node --version
- npm --version
- if "%LINT%"=="1" (npm run lint)
- yarn --version
- if "%LINT%"=="1" (yarn run lint)
- node test/run.js
- SET MYSQL_USE_COMPRESSION=1
- node test/run.js
Expand Down

0 comments on commit 36e010b

Please sign in to comment.