Skip to content

Commit fd47a02

Browse files
committed
Issue checkstyle/checkstyle#7444: disable google mirror in Travis
1 parent 45f9a31 commit fd47a02

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ branches:
1010
only:
1111
- master
1212

13+
addons:
14+
apt:
15+
packages:
16+
- xmlstarlet
17+
1318
install:
1419
- ""
1520

@@ -33,6 +38,14 @@ matrix:
3338

3439
script:
3540
- |
41+
MVN_SETTINGS=${TRAVIS_HOME}/.m2/settings.xml
42+
if [[ -f ${MVN_SETTINGS} ]]; then
43+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
44+
sed -i'' -e "/<mirrors>/,/<\/mirrors>/ d" $MVN_SETTINGS
45+
else
46+
xmlstarlet ed --inplace -d "//mirrors" $MVN_SETTINGS
47+
fi
48+
fi
3649
echo "eval of CMD is starting";
3750
echo "CMD=$CMD";
3851
eval $CMD;

0 commit comments

Comments
 (0)