forked from languagetool-org/languagetool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[circleci] update settings to for deplay artifacts
- Loading branch information
Showing
9 changed files
with
31 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ parameters: | |
run_on_pull: | ||
default: true | ||
type: boolean | ||
deploy_after_test: | ||
default: false | ||
type: boolean | ||
orbs: | ||
shallow-checkout: expo/[email protected] | ||
workflows: | ||
|
@@ -89,6 +92,9 @@ commands: | |
ignore_diff: | ||
type: boolean | ||
default: false | ||
deploy_artifact: | ||
type: boolean | ||
default: false | ||
steps: | ||
- when: | ||
condition: << parameters.ignore_diff >> | ||
|
@@ -100,6 +106,10 @@ commands: | |
then | ||
echo "" > /home/circleci/git_diffs.txt | ||
cd $CIRCLE_WORKING_DIRECTORY && mvn -pl '!languagetool-rpm-package' test -fae | ||
if << parameters.deploy_artifact >> = true || << pipeline.deploy_after_test >> | ||
then | ||
cd mvn -s .circleci.settings.xml -pl '!languagetool-rpm-package' -DskipTests deploy | ||
fi | ||
else | ||
echo "No changes detected in <<parameters.path_to_check>>" | ||
fi | ||
|
@@ -112,6 +122,10 @@ commands: | |
if grep -q -e << parameters.path_to_check >>/.* /home/circleci/git_diffs.txt | ||
then | ||
cd $CIRCLE_WORKING_DIRECTORY && mvn --projects << parameters.path_to_check >> --also-make test -fae | ||
if << parameters.deploy_artifact >> = true || << pipeline.deploy_after_test >> | ||
then | ||
cd mvn -s .circleci.settings.xml --projects << parameters.path_to_check >> -DskipTests deploy | ||
fi | ||
else | ||
echo "No changes detected in <<parameters.path_to_check>>" | ||
fi | ||
|
@@ -124,9 +138,7 @@ commands: | |
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \; | ||
when: always | ||
- store_test_results: | ||
path: ~/test-results | ||
# - store_artifacts: | ||
# path: ~test-results/junit | ||
path: ~/test-results | ||
executors: | ||
docker-openjdk8: | ||
docker: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,14 +38,18 @@ | |
<url>[email protected]:languagetool-org/languagetool.git</url> | ||
</scm> | ||
|
||
<!-- TODO: update to new repo for snapshots --> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<!-- see ~/.m2/settings.xml for authentication --> | ||
<id>snapshots</id> | ||
<name>a0oneieyqx0fu-artifactory-primary-0-snapshots</name> | ||
<url>https://languagetool.jfrog.io/artifactory/languagetool-libs-snapshot</url> | ||
<id>repo.languagetool.org</id> | ||
<name>languagetool-os-snapshot</name> | ||
<url>https://repo.languagetool.org/artifactory/languagetool-os-snapshot/</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>repo.languagetool.org</id> | ||
<name>languagetool-os-snapshot</name> | ||
<url>https://repo.languagetool.org/artifactory/languagetool-os-release/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<!-- TODO remove if nothing failed after reorganize | ||
|