Skip to content

Commit fb57b60

Browse files
authored
[ci] Execute maven and verify with no-snapshot-updates (#6415)
1 parent 8bbce33 commit fb57b60

File tree

10 files changed

+19
-18
lines changed

10 files changed

+19
-18
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ script:
135135
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
136136
# run integration tests defined in maven pom.xml
137137
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
138-
- mvn --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
139-
- mvn --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
138+
- mvn --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
139+
- mvn --no-snapshot-updates --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
140140
# test maven plugin
141-
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
142-
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
143-
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
144-
- mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
141+
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
142+
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
143+
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
144+
- mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
145145
# test gradle plugin
146146
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk)
147147
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)

CI/.travis.yml.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ script:
3434
- set -e
3535
# run integration tests defined in maven pom.xml
3636
- cp pom.xml.bash pom.xml
37-
- mvn --batch-mode verify -Psamples
37+
- mvn --no-snapshot-updates --batch-mode verify -Psamples

CI/.travis.yml.ios

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ before_install:
3434

3535
script:
3636
# run integration tests defined in maven pom.xml
37-
- mvn -q --batch-mode verify -Psamples.ios -Dmaven.javadoc.skip=true
37+
- mvn --no-snapshot-updates -q --batch-mode verify -Psamples.ios -Dmaven.javadoc.skip=true

CI/bitrise.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ workflows:
2828
2929
set -e
3030
31-
mvn package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
31+
mvn --no-snapshot-updates package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
3232
title: Build openapi-generator
3333
3434
title: Update Swift samples

CI/circle_parallel.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if [ "$NODE_INDEX" = "1" ]; then
2424
export PATH="/usr/local/go1.14/go/bin:$PATH"
2525
go version
2626

27-
mvn --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
28-
mvn --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
27+
mvn --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
28+
mvn --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
2929

3030
elif [ "$NODE_INDEX" = "2" ]; then
3131
# run ensure-up-to-date sample script on SNAPSHOT version only
@@ -58,7 +58,7 @@ elif [ "$NODE_INDEX" = "2" ]; then
5858
sudo apt-get -y install libcurl4-gnutls-dev
5959

6060
# run integration tests
61-
mvn --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
61+
mvn --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
6262
else
6363
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
6464
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
@@ -73,7 +73,7 @@ else
7373
sudo apt-get install dart
7474
export PATH="$PATH:/usr/lib/dart/bin"
7575

76-
mvn --quiet verify -Psamples.circleci.jdk7 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
76+
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.jdk7 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
7777
fi
7878

7979

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ build_script:
4848
- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
4949
- msbuild samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
5050
# install openapi-generator locally
51-
- mvn clean install --quiet -Dorg.slf4j.simpleLogger.defaultLogLevel=error
51+
- mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
5252
# run the locally installed openapi-generator-gradle-plugin
5353
- gradle -b modules\openapi-generator-gradle-plugin\samples\local-spec\build.gradle buildGoSdk --info
5454
test_script:

bin/utils/ensure-up-to-date

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ declare -a always_iterate=(
100100
export JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
101101
if [ "true" = "$batch_mode" ]; then
102102
if [ ! -f "$executable" ]; then
103-
(cd "${root}" && mvn -B clean package -DskipTests=true -Dmaven.javadoc.skip=true)
103+
(cd "${root}" && mvn -B --no-snapshot-updates clean package -DskipTests=true -Dmaven.javadoc.skip=true)
104104
fi
105105

106106
# shellcheck disable=SC2086

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- run: sleep 30
6767
- run: cat /etc/hosts
6868
# Test
69-
- run: mvn --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
69+
- run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
7070
- run: ./CI/circle_parallel.sh
7171
# Save dependency cache
7272
- save_cache:

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
<argLine>@{argLine} -XX:+StartAttachListener</argLine>
228228
<systemPropertyVariables>
229229
<org.openapitools.codegen.utils.oncelogger.expiry>1000</org.openapitools.codegen.utils.oncelogger.expiry>
230+
<org.openapitools.codegen.utils.oncelogger.cachesize>5000</org.openapitools.codegen.utils.oncelogger.cachesize>
230231
</systemPropertyVariables>
231232
</configuration>
232233
<dependencies>

shippable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
- rm /etc/apt/sources.list.d/jonathonf-ubuntu-backports-xenial.list
1616
#
1717
- java -version
18-
- mvn --quiet clean install -Dmaven.javadoc.skip=true
18+
- mvn --no-snapshot-updates --quiet clean install -Dmaven.javadoc.skip=true
1919
# ensure all modifications created by 'mature' generators are in the git repo
2020
# below move to CircleCI ./bin/utils/ensure-up-to-date
2121
# prepare environment for tests
@@ -42,7 +42,7 @@ build:
4242
- elixir --version
4343
- mix --version
4444
# test samples defined in pom.xml
45-
- mvn --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
45+
- mvn --no-snapshot-updates --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
4646
# below moved to CircleCI
4747
## generate all petstore samples (client, servers, doc)
4848
#- ./bin/run-all-petstore

0 commit comments

Comments
 (0)