Skip to content

Commit d0ac84c

Browse files
committed
Add Yarn lockfile, travis & appveyor support.
1 parent 756abc3 commit d0ac84c

File tree

3 files changed

+4254
-3
lines changed

3 files changed

+4254
-3
lines changed

.travis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
language: node_js
22
node_js:
3-
- "0.10"
4-
- "0.12"
53
- "4"
64
- "6"
75
- "7"
6+
before_install:
7+
# Repo for newer Node.js versions
8+
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
9+
# Repo for Yarn
10+
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
11+
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
12+
- sudo apt-get update -qq
13+
- sudo apt-get install -y -qq yarn
14+
install:
15+
- node --version
16+
- yarn install
17+
cache:
18+
directories:
19+
- $HOME/.yarn-cache
820
before_script:
921
- export CHROME_BIN=chromium-browser
1022
- export DISPLAY=:99.0

appveyor.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
# https://www.appveyor.com/docs/appveyor-yml/
22

3+
environment:
4+
matrix:
5+
- node_version: "7"
6+
- node_version: "6"
7+
- node_version: "4"
8+
39
cache:
410
- node_modules
511

612
environment:
713
IE_BIN: "%PROGRAMFILES%\\Internet Explorer\\iexplorer.exe"
814

915
install:
10-
- npm install
16+
- ps: Install-Product node $env:node_version
17+
- choco install -i yarn
18+
- refreshenv
19+
- yarn install
20+
21+
cache:
22+
- "%LOCALAPPDATA%/Yarn"
1123

1224
test_script:
1325
- npm run test-ie

0 commit comments

Comments
 (0)