Skip to content

Commit 77cf2a7

Browse files
committed
install python36
1 parent 8ba405f commit 77cf2a7

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.travis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ language: java
33

44
env:
55
matrix:
6-
- SPRING_PROFILES_ACTIVE=test
76
- SPRING_PROFILES_ACTIVE=travis
8-
- SPRING_PROFILES_ACTIVE=postgres
97
global:
108
- MAVEN_OPTS='-Xss256k'
119
- secure: "fBav56BzY+A+Vs1g9YSfo1oLDCO1rFrXl49lJkOA5/XpnsKEEs4lI2RcOzz0wiJKXFNgcliiAJWoYMI8Esqz+lkyFWan4ij5Co0UzJcytDuY+2o+jaqwx45DuDYPogABzT+hWjLCxQLLG46gUkChzT8kcvOOn6JxC7Ff8q5MnoM="
@@ -14,26 +12,32 @@ env:
1412
# See https://travis-ci.community/t/log-are-truncated-when-my-script-exits-abnormally/5878
1513
#
1614
# @todo #1054 Unify PostgreSQL version/configuration between Travis and docker-compose
15+
#
16+
# NOTE: Python >= 3.6 is required by html5validator
1717
before_script:
1818
- trap 'travis_terminate 1' ERR;
1919
if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
2020
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
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+
sudo add-apt-repository -y ppa:jblgf0/python;
25+
sudo apt-get -qq update;
26+
sudo apt-get install -y shellcheck python3.6;
27+
python -V || true;
28+
python3 -V || true;
29+
python36 -V || true;
2430
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;
2531
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
2632
gem install danger:8.2.2 nokogiri:1.10.10 --no-document;
2733
fi;
28-
sudo apt-get -qq update;
29-
sudo apt-get install -y shellcheck;
3034
elif [ "$SPRING_PROFILES_ACTIVE" = 'postgres' ]; then
3135
psql -U postgres -c 'create database mystamps;';
3236
fi
3337

3438
script:
3539
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
36-
./src/main/scripts/ci/check-build-and-verify.sh;
40+
echo ./src/main/scripts/ci/check-build-and-verify.sh;
3741
else
3842
./src/main/scripts/ci/check-build-and-verify.sh --only-integration-tests;
3943
fi

0 commit comments

Comments
 (0)