Skip to content

Commit 0e09fac

Browse files
committed
ci: install Python 3.6 that is required by newer version of html5validator to fix the build on TravisCI
This won't be necessary once we get newer Ubuntu on CI (see #1467) See also: - https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get - https://askubuntu.com/questions/889535/how-to-install-pip-for-python-3-6-on-ubuntu-16-10 Correction for 0132a12 commit. Relate to #1533
1 parent 8ba405f commit 0e09fac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: .travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ before_script:
2121
mkdir -p /tmp/uploads /tmp/preview;
2222
cp src/main/resources/test/test.png /tmp/uploads/1.png;
2323
npm install -g [email protected];
24-
pip install --user html5validator==0.4.2 ruamel.yaml.clib==0.2.2 robotframework==3.2.2 robotframework-lint==1.1 ansible==2.9.2 ansible-lint==4.2.0;
24+
sudo add-apt-repository -y ppa:jblgf0/python;
25+
sudo apt-get -qq update;
26+
sudo apt-get install -y shellcheck python3.6 python3-pip;
27+
curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | sudo -H python3.6;
28+
pip3 install --user html5validator==0.4.2 ruamel.yaml.clib==0.2.2 robotframework==3.2.2 robotframework-lint==1.1 ansible==2.9.2 ansible-lint==4.2.0;
2529
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
2630
gem install danger:8.2.2 nokogiri:1.10.10 --no-document;
2731
fi;
28-
sudo apt-get -qq update;
29-
sudo apt-get install -y shellcheck;
3032
elif [ "$SPRING_PROFILES_ACTIVE" = 'postgres' ]; then
3133
psql -U postgres -c 'create database mystamps;';
3234
fi

0 commit comments

Comments
 (0)