Skip to content

Commit 07c0c9c

Browse files
committed
infra: move all Travis big blocks to special shell script
1 parent 9d3ba76 commit 07c0c9c

File tree

4 files changed

+49
-29
lines changed

4 files changed

+49
-29
lines changed

.ci/travis.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
# Attention, there is no "-x" to avoid problems on Travis
3+
set -e
4+
5+
case $1 in
6+
7+
init-m2-repo)
8+
if [[ $RUN_JOB == 1 ]]; then
9+
MVN_SETTINGS=${TRAVIS_HOME}/.m2/settings.xml
10+
if [[ -f ${MVN_SETTINGS} ]]; then
11+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
12+
sed -i'' -e "/<mirrors>/,/<\/mirrors>/ d" $MVN_SETTINGS
13+
else
14+
xmlstarlet ed --inplace -d "//mirrors" $MVN_SETTINGS
15+
fi
16+
fi
17+
else
18+
echo "$1 is skipped";
19+
fi
20+
;;
21+
22+
*)
23+
echo "Unexpected argument: $1"
24+
sleep 5s
25+
false
26+
;;
27+
28+
esac

.travis.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,8 @@ matrix:
4848
- CMD="mvn install && git diff"
4949

5050
script:
51-
- |
52-
MVN_SETTINGS=${TRAVIS_HOME}/.m2/settings.xml
53-
if [[ -f ${MVN_SETTINGS} ]]; then
54-
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
55-
sed -i'' -e "/<mirrors>/,/<\/mirrors>/ d" $MVN_SETTINGS
56-
else
57-
xmlstarlet ed --inplace -d "//mirrors" $MVN_SETTINGS
58-
fi
59-
fi
60-
echo "eval of CMD is starting";
61-
echo "CMD=$CMD";
62-
eval $CMD;
63-
echo "eval of CMD is completed";
51+
- ./.ci/travis.sh init-m2-repo
52+
- echo "eval of CMD is starting";
53+
- echo "CMD=$CMD";
54+
- eval $CMD;
55+
- echo "eval of CMD is completed";

docs/partials/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ <h2>More Checkstyle?</h2>
199199
installed from the following
200200
update site:
201201
</p>
202-
<code>http://sevntu-checkstyle.github.com/sevntu.checkstyle/update-site/</code>
202+
<code>http://sevntu-checkstyle.github.io/sevntu.checkstyle/update-site/</code>
203203
</div>
204204
</div>
205205
<div class="row">

docs/sitemap.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,77 +12,77 @@
1212
-->
1313
<url>
1414
<loc>https://checkstyle.org/eclipse-cs/</loc>
15-
<lastmod>2021-08-06T19:02:25Z</lastmod>
15+
<lastmod>2021-12-11T14:35:02Z</lastmod>
1616
<changefreq>weekly</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://checkstyle.org/eclipse-cs/#!/releasenotes</loc>
20-
<lastmod>2021-08-06T19:02:25Z</lastmod>
20+
<lastmod>2021-12-11T14:35:02Z</lastmod>
2121
<changefreq>weekly</changefreq>
2222
</url>
2323
<url>
2424
<loc>https://checkstyle.org/eclipse-cs/#!/install</loc>
25-
<lastmod>2021-08-06T19:02:25Z</lastmod>
25+
<lastmod>2021-12-11T14:35:02Z</lastmod>
2626
<changefreq>weekly</changefreq>
2727
</url>
2828
<url>
2929
<loc>https://checkstyle.org/eclipse-cs/#!/project-setup</loc>
30-
<lastmod>2021-08-06T19:02:25Z</lastmod>
30+
<lastmod>2021-12-11T14:35:02Z</lastmod>
3131
<changefreq>weekly</changefreq>
3232
</url>
3333
<url>
3434
<loc>https://checkstyle.org/eclipse-cs/#!/custom-config</loc>
35-
<lastmod>2021-08-06T19:02:25Z</lastmod>
35+
<lastmod>2021-12-11T14:35:02Z</lastmod>
3636
<changefreq>weekly</changefreq>
3737
</url>
3838
<url>
3939
<loc>https://checkstyle.org/eclipse-cs/#!/filters</loc>
40-
<lastmod>2021-08-06T19:02:25Z</lastmod>
40+
<lastmod>2021-12-11T14:35:02Z</lastmod>
4141
<changefreq>weekly</changefreq>
4242
</url>
4343
<url>
4444
<loc>https://checkstyle.org/eclipse-cs/#!/configtypes</loc>
45-
<lastmod>2021-08-06T19:02:25Z</lastmod>
45+
<lastmod>2021-12-11T14:35:02Z</lastmod>
4646
<changefreq>weekly</changefreq>
4747
</url>
4848
<url>
4949
<loc>https://checkstyle.org/eclipse-cs/#!/properties</loc>
50-
<lastmod>2021-08-06T19:02:25Z</lastmod>
50+
<lastmod>2021-12-11T14:35:02Z</lastmod>
5151
<changefreq>weekly</changefreq>
5252
</url>
5353
<url>
5454
<loc>https://checkstyle.org/eclipse-cs/#!/filesets</loc>
55-
<lastmod>2021-08-06T19:02:25Z</lastmod>
55+
<lastmod>2021-12-11T14:35:02Z</lastmod>
5656
<changefreq>weekly</changefreq>
5757
</url>
5858
<url>
5959
<loc>https://checkstyle.org/eclipse-cs/#!/preferences</loc>
60-
<lastmod>2021-08-06T19:02:25Z</lastmod>
60+
<lastmod>2021-12-11T14:35:02Z</lastmod>
6161
<changefreq>weekly</changefreq>
6262
</url>
6363
<url>
6464
<loc>https://checkstyle.org/eclipse-cs/#!/extensions</loc>
65-
<lastmod>2021-08-06T19:02:25Z</lastmod>
65+
<lastmod>2021-12-11T14:35:02Z</lastmod>
6666
<changefreq>weekly</changefreq>
6767
</url>
6868
<url>
6969
<loc>https://checkstyle.org/eclipse-cs/#!/custom-checks</loc>
70-
<lastmod>2021-08-06T19:02:25Z</lastmod>
70+
<lastmod>2021-12-11T14:35:02Z</lastmod>
7171
<changefreq>weekly</changefreq>
7272
</url>
7373
<url>
7474
<loc>https://checkstyle.org/eclipse-cs/#!/builtin-config</loc>
75-
<lastmod>2021-08-06T19:02:25Z</lastmod>
75+
<lastmod>2021-12-11T14:35:02Z</lastmod>
7676
<changefreq>weekly</changefreq>
7777
</url>
7878
<url>
7979
<loc>https://checkstyle.org/eclipse-cs/#!/custom-filters</loc>
80-
<lastmod>2021-08-06T19:02:25Z</lastmod>
80+
<lastmod>2021-12-11T14:35:02Z</lastmod>
8181
<changefreq>weekly</changefreq>
8282
</url>
8383
<url>
8484
<loc>https://checkstyle.org/eclipse-cs/#!/faq</loc>
85-
<lastmod>2021-08-06T19:02:25Z</lastmod>
85+
<lastmod>2021-12-11T14:35:02Z</lastmod>
8686
<changefreq>weekly</changefreq>
8787
</url>
8888
</urlset>

0 commit comments

Comments
 (0)