Skip to content

Commit

Permalink
Test against arm64 on Travis (#2783)
Browse files Browse the repository at this point in the history
* Test against arm64 on Travis

* Fix travis yaml

* Increase test timeout
  • Loading branch information
OskarPersson authored and xzyfer committed Nov 23, 2019
1 parent 7293699 commit 7ef1b8e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .travis.yml
Expand Up @@ -7,23 +7,38 @@ jobs:
- stage: test
node_js: "12"
os: linux
arch: amd64
before_script: npm run lint || exit 1;
after_success: npm run-script coverage;
- stage: platform-test
node_js: "12"
os: osx
- stage: platform-test
node_js: "12"
os: linux
arch: arm64
- stage: platform-test
node_js: "10"
os: linux
arch: amd64
- stage: platform-test
node_js: "10"
os: osx
- stage: platform-test
node_js: "10"
os: linux
arch: arm64
- stage: platform-test
node_js: "13"
os: linux
arch: amd64
- stage: platform-test
node_js: "13"
os: osx
- stage: platform-test
node_js: "13"
os: linux
arch: arm64

addons:
apt:
Expand Down
5 changes: 5 additions & 0 deletions lib/extensions.js
Expand Up @@ -44,6 +44,11 @@ function getHumanArchitecture(arch) {
case 'ia32': return '32-bit';
case 'x86': return '32-bit';
case 'x64': return '64-bit';
case 'armv7l': return '32-bit, ARM';
case 'armv7hf': return '32-bit, ARM';
case 'armv8': return '64-bit, ARM';
case 'aarch64': return '64-bit, ARM';
case 'arm64': return '64-bit, ARM';
default: return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"install": "node scripts/install.js",
"postinstall": "node scripts/build.js",
"lint": "node_modules/.bin/eslint bin/node-sass lib scripts test",
"test": "node_modules/.bin/mocha test/{*,**/**}.js",
"test": "node_modules/.bin/mocha test/{*,**/**}.js --timeout 5000ms",
"build": "node scripts/build.js --force",
"prepublish": "not-in-install && node scripts/prepublish.js || in-install"
},
Expand Down

0 comments on commit 7ef1b8e

Please sign in to comment.