Skip to content

Commit

Permalink
Added sbt option -Dsbt.log.noformat=true
Browse files Browse the repository at this point in the history
  • Loading branch information
abrighton committed Nov 26, 2024
1 parent a0d618a commit 1346a30
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
- name: Tests
run: |
sbt -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true 'csw-time/test:test'
sbt -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true -DdisableTimeTests 'test:test'
sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true 'csw-time/test:test'
sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true -DdisableTimeTests 'test:test'
- name: Coverage Report
run: |
sbt -DenableCoverage=true coverageReport
sbt -Dsbt.log.noformat=true -DenableCoverage=true coverageReport
sbtn coverageAggregate
- name: Generate RTM
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
sbtn makeSite
- name: Multi-Jvm Tests
run: sbt -DenableFatalWarnings=true -DgenerateStoryReport=true 'integration/multi-jvm:test'
run: sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -DgenerateStoryReport=true 'integration/multi-jvm:test'

- name: Generate RTM
if: always()
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ jobs:
- name: Unit and Component Tests
run: |
sbt -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true 'csw-time/test:test'
sbt -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true -DdisableTimeTests 'test:test'
sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true 'csw-time/test:test'
sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true -DdisableTimeTests 'test:test'
- name: Coverage Report
run: |
sbt -DenableCoverage=true coverageReport
sbt -Dsbt.log.noformat=true -DenableCoverage=true coverageReport
sbtn coverageAggregate
- uses: actions/upload-artifact@v4
Expand All @@ -62,7 +62,7 @@ jobs:
run: find . -type d -regex ".*js/target.*" | xargs rm -rf

- name: Multi-Jvm Tests
run: sbt -DgenerateStoryReport=true integration/multi-jvm:test
run: sbt -Dsbt.log.noformat=true -DgenerateStoryReport=true integration/multi-jvm:test

- name: Generate RTM
if: always()
Expand All @@ -80,7 +80,7 @@ jobs:
run: sbtn makeSite

- name: Github Release
run: sbt githubRelease
run: sbt -Dsbt.log.noformat=true githubRelease
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

Expand All @@ -90,7 +90,7 @@ jobs:
chmod +x /tmp/.git-askpass
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
sbt clean ghpagesPushSite
sbt -Dsbt.log.noformat=true clean ghpagesPushSite
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GIT_ASKPASS: /tmp/.git-askpass
Expand Down
16 changes: 8 additions & 8 deletions jenkins/stil-nightly
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ pipeline {
stage('Build') {
steps {
sh "cs java --jvm temurin:1.17.0 -version"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt clean"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt scalafmtCheck"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -DenableFatalWarnings=true ';set every Seq(scalafmtOnCompile := false); scalastyle; test:compile; multi-jvm:compile;'"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true clean"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true scalafmtCheck"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true ';set every Seq(scalafmtOnCompile := false); scalastyle; test:compile; multi-jvm:compile;'"
}
}

// Component tests cover the scenario of multiple components in single container
stage('Unit and Component Tests') {
steps {
// Run all tests except csw-time tests
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true -DdisableTimeTests 'test:test'"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true -DdisableTimeTests 'test:test'"

// Run csw-time module tests
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true 'csw-time/test:test'"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -Dakka.actor.serialize-messages=on -DenableCoverage=true -DgenerateStoryReport=true 'csw-time/test:test'"
}
post {
always {
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -DenableCoverage=true coverageReport"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt coverageAggregate"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true -DenableCoverage=true coverageReport"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true coverageAggregate"
junit '**/target/test-reports/*.xml'
publishHTML(target: [
allowMissing : true,
Expand All @@ -54,7 +54,7 @@ pipeline {
// These tests cover the scenario of multiple components in multiple containers on same machine.
stage('Multi-Jvm Test') {
steps {
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -DenableFatalWarnings=true -DgenerateStoryReport=true 'integration/multi-jvm:test'"
sh "eval \$(cs java --jvm temurin:1.17.0 --env) && sbt -Dsbt.log.noformat=true -DenableFatalWarnings=true -DgenerateStoryReport=true 'integration/multi-jvm:test'"
}
}

Expand Down
2 changes: 1 addition & 1 deletion jenkins/stil-weekly
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pipeline {

stage('Paradox Validate Links') {
steps {
sh "sbt docs/paradoxValidateLinks"
sh "sbt -Dsbt.log.noformat=true docs/paradoxValidateLinks"
}
}
}
Expand Down

0 comments on commit 1346a30

Please sign in to comment.