Skip to content

Commit

Permalink
chore(CI): update Python for Node 17
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Oct 23, 2021
1 parent 1c72466 commit d6b1143
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Expand Up @@ -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
sudo ln -sf /usr/bin/python3.6 /usr/bin/python3
fi;
npm install --legacy-peer-deps --no-save "eslint@${ESLINT}"
notifications:
email: false
Expand Down

0 comments on commit d6b1143

Please sign in to comment.