From dc708abc05dcce8de69988c2bc21420994246e78 Mon Sep 17 00:00:00 2001 From: Krishna Harsha Voora Date: Fri, 13 Aug 2021 08:00:38 -0400 Subject: [PATCH] Add support for ppc64le architecture This change will allow testing to run on ppc64le architecture Signed-off-by: Krishna Harsha Voora --- .travis.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++ lib/extensions.js | 1 + 2 files changed, 63 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..e25160ede --- /dev/null +++ b/.travis.yml @@ -0,0 +1,62 @@ +language: node_js +arch: ppc64le +dist: bionic +compiler: gcc + +env: + global: + - SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true + +jobs: + include: + - stage: test + node_js: "16" + os: linux + before_script: npm run lint || exit 1; + after_success: npm run-script coverage; + - stage: platform-test + node_js: "15" + os: linux + - stage: platform-test + node_js: "14" + os: linux + - stage: platform-test + node_js: "12" + os: linux + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-6 + - g++-6 + +before_install: + - echo $TRAVIS_NODE_VERSION + - npm config set python `which python` + - if [ $TRAVIS_OS_NAME == "linux" ]; then + if [[ $(node -v) =~ v1[234] ]]; then + export CC="gcc-6"; + export CXX="g++-6"; + export LINK="gcc-6"; + export LINKXX="g++-6"; + fi + fi + - nvm --version + - node --version + - npm --version + - ${CC:-gcc} --version + - ${CXX:-g++} --version + +install: + - npm install --unsafe-perm + +script: + - npm test + +cache: + directories: + - $HOME/.node-gyp + - $HOME/.npm + - node_modules diff --git a/lib/extensions.js b/lib/extensions.js index ce4b17a56..109d54793 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -43,6 +43,7 @@ function getHumanArchitecture(arch) { case 'ia32': return '32-bit'; case 'x86': return '32-bit'; case 'x64': return '64-bit'; + case 'ppc64':return '64-bit'; default: return false; } }