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 604b400
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
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
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 604b400

Please sign in to comment.