@@ -3,9 +3,7 @@ language: java
3
3
4
4
env :
5
5
matrix :
6
- - SPRING_PROFILES_ACTIVE=test
7
6
- SPRING_PROFILES_ACTIVE=travis
8
- - SPRING_PROFILES_ACTIVE=postgres
9
7
global :
10
8
- MAVEN_OPTS='-Xss256k'
11
9
- secure : " fBav56BzY+A+Vs1g9YSfo1oLDCO1rFrXl49lJkOA5/XpnsKEEs4lI2RcOzz0wiJKXFNgcliiAJWoYMI8Esqz+lkyFWan4ij5Co0UzJcytDuY+2o+jaqwx45DuDYPogABzT+hWjLCxQLLG46gUkChzT8kcvOOn6JxC7Ff8q5MnoM="
14
12
# See https://travis-ci.community/t/log-are-truncated-when-my-script-exits-abnormally/5878
15
13
#
16
14
# @todo #1054 Unify PostgreSQL version/configuration between Travis and docker-compose
15
+ #
16
+ # NOTE: Python >= 3.6 is required by html5validator
17
17
before_script :
18
18
- trap 'travis_terminate 1' ERR;
19
19
if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
20
20
mysql -u root -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
21
21
mkdir -p /tmp/uploads /tmp/preview;
22
22
cp src/main/resources/test/test.png /tmp/uploads/1.png;
23
23
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;
24
30
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;
25
31
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
26
32
gem install danger:8.2.2 nokogiri:1.10.10 --no-document;
27
33
fi;
28
- sudo apt-get -qq update;
29
- sudo apt-get install -y shellcheck;
30
34
elif [ "$SPRING_PROFILES_ACTIVE" = 'postgres' ]; then
31
35
psql -U postgres -c 'create database mystamps;';
32
36
fi
33
37
34
38
script :
35
39
- 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;
37
41
else
38
42
./src/main/scripts/ci/check-build-and-verify.sh --only-integration-tests;
39
43
fi
0 commit comments