Skip to content

Commit b1eafdb

Browse files
committed
빌드-테스트 실행용 배치 파일추가
1 parent a163def commit b1eafdb

7 files changed

Lines changed: 138 additions & 31 deletions

File tree

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text=auto
2+
3+
mvnw text eol=lf
4+
*.sh text eol=lf
5+
*.bat text eol=crlf
6+
*.cmd text eol=crlf
Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
wrapperVersion=3.3.2
1+
wrapperVersion=3.3.4
182
distributionType=only-script
19-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.10/apache-maven-3.9.10-bin.zip
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip

build-test.bat

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@echo off
2+
setlocal
3+
4+
echo ==============================================================================
5+
echo [1/2] Root install (Parent-POM + Struts2 JUnit 5 Plugin to local repository)
6+
echo ==============================================================================
7+
call mvnw.cmd clean install
8+
if %ERRORLEVEL% neq 0 (
9+
echo.
10+
echo [FAILED] mvnw clean install failed. Aborting.
11+
exit /b %ERRORLEVEL%
12+
)
13+
14+
echo.
15+
echo ============================================================
16+
echo [2/2] Full test suite (struts2-study-parent)
17+
echo ============================================================
18+
call mvnw.cmd clean test -f struts2-study-parent/pom.xml
19+
if %ERRORLEVEL% neq 0 (
20+
echo.
21+
echo [FAILED] Tests failed.
22+
exit /b %ERRORLEVEL%
23+
)
24+
25+
echo.
26+
echo [SUCCESS] Build and tests completed successfully.
27+
endlocal

build-test.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
set -e
3+
4+
echo "=============================================================================="
5+
echo " [1/2] Root install (Parent-POM + Struts2 JUnit 5 Plugin to local repository)"
6+
echo "=============================================================================="
7+
./mvnw clean install
8+
9+
echo ""
10+
echo "============================================================"
11+
echo " [2/2] Full test suite (struts2-study-parent)"
12+
echo "============================================================"
13+
./mvnw clean test -f struts2-study-parent/pom.xml
14+
15+
echo ""
16+
echo "[SUCCESS] Build and tests completed successfully."

cspell.config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "0.2"
2+
ignorePaths:
3+
- mvnw.cmd
4+
- mvnw
5+
dictionaryDefinitions: []
6+
dictionaries: []
7+
words:
8+
- setlocal
9+
- endlocal
10+
- ERRORLEVEL
11+
ignoreWords: []
12+
import: []

mvnw

Lines changed: 43 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mvnw.cmd

Lines changed: 32 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)