Skip to content

Commit a54ca9d

Browse files
committed
Added ENV Variable for GitLab CI
1 parent 22540ec commit a54ca9d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ image: maven:3.3-jdk-8
33
cache:
44
key: "$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME"
55
paths:
6-
- .m2/
6+
- $HOME/.m2/
77

88
before_script:
99
- mkdir -p $HOME/.m2/
@@ -13,15 +13,15 @@ stages:
1313
- build
1414
- deploy
1515

16+
# install:
17+
# stage: test
18+
# script:
19+
# - mvn clean install
20+
1621
unit_test:
1722
stage: test
1823
script:
19-
- mvn clean test -B
20-
21-
#check_style:
22-
# stage: test
23-
# script:
24-
# - mvn clean checkstyle:check -B
24+
- mvn clean test $ENV_TEST -Dtest=Runner
2525

2626
.build: &build_template
2727
stage: build

src/test/java/chatbot/lib/TestUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class TestUtility {
2323

2424
private static String getProperty(String propertyName) {
2525
if(properties.size() == 0) {
26-
return systemProperties.get(propertyName);
26+
return System.getProperty(propertyName);
2727
}
2828
else {
2929
return properties.getProperty(propertyName);

0 commit comments

Comments
 (0)