diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-10-16 10:02:14 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-10-16 10:33:55 +0200 |
| commit | 1291f09ec40654d403d03189c66f8864a44b3eee (patch) | |
| tree | 82d048e1212a052f06f687afdf120bbbec6fd449 | |
| parent | abc5cc3d914e610f4f07043906c85c20b04f4061 (diff) | |
| download | mullvadvpn-1291f09ec40654d403d03189c66f8864a44b3eee.tar.xz mullvadvpn-1291f09ec40654d403d03189c66f8864a44b3eee.zip | |
Add node job on Windows
| -rw-r--r-- | .travis.yml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 293513c615..8dc962e737 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,15 +16,28 @@ matrix: - xvfb before_install: - npm install -g npm - install: + install: &node_install + - npm --version + - node --version - cd gui - npm ci --no-optional - script: + script: &node_script - npm run check-format - npm run lint - npm run build - npm test + - os: windows + language: node_js + node_js: '12' + cache: npm + before_install: + # npm fails to upgrade itself if just doing `npm install -g npm`. See this issue: + # https://travis-ci.community/t/command-npm-i-g-npm-latest-fails/431/5 + - node `npm prefix -g`/node_modules/npm/bin/npm-cli.js i -g npm@latest + install: *node_install + script: *node_script + # Android - language: android sudo: true |
