From fc8bf56d0883c48bf52e341b9ff7003ef5b21db0 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Fri, 20 May 2022 13:01:02 -0500 Subject: [PATCH] [FIX] .travis.yml: npm v18.0.0 is not compatible with ubuntu used from travis More info about: - https://travis-ci.community/t/the-command-npm-config-set-spin-false-failed-and-exited-with-1-during/12909/4 Summary it requires GLIBC_2.28 but it is not available in ubuntu used from travis --- .travis.yml | 6 ++++++ tox.ini | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 642086ba..b97792f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,12 @@ cache: directories: - $HOME/.cache/pip +# node 18 is not compatible with current ubuntu version used in travis +# More info about: +# - https://travis-ci.community/t/the-command-npm-config-set-spin-false-failed-and-exited-with-1-during/12909/4 +node_js: + - 17 + matrix: include: - python: 2.7 diff --git a/tox.ini b/tox.ini index 0ba7ab96..41582968 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,10 @@ passenv = commands = python --version - nodeenv --python-virtualenv + # node 18 is not compatible with current ubuntu version used in travis + # More info about: + # - https://travis-ci.community/t/the-command-npm-config-set-spin-false-failed-and-exited-with-1-during/12909/4 + nodeenv --python-virtualenv -n 17.9.0 npm install -g --no-package-lock --no-save eslint eslint --version coverage run setup.py test