From 604b400d85ab3a178b4039243a1e16068389a81f Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Sat, 23 Oct 2021 07:50:56 +0800 Subject: [PATCH] chore(CI): update Python for Node 17 --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index be648d81a..7090abfe5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,16 @@ before_install: install: - echo "Avoid Travis's npm auto-install" before_script: > + node_version=$(node -v); + if [ ${node_version:1:2} = "17" ]; then + echo "Deadsnakes" + sudo add-apt-repository --yes ppa:deadsnakes/ppa + echo "Update apt-get" + sudo apt-get update + echo "Install Python3" + sudo apt-get --assume-yes install python3.6 + ln -sf /usr/bin/python3.6 /usr/bin/python3 + fi; npm install --legacy-peer-deps --no-save "eslint@${ESLINT}" notifications: email: false