Skip to content

Commit

Permalink
Build enhancements (#160)
Browse files Browse the repository at this point in the history
- Fail the build earlier.
  - We don't want to run the tests if spotless fails.
- Remove `clean`.
  - Try to use previous results.
  • Loading branch information
khatchad authored Mar 12, 2024
1 parent e563583 commit 00276db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install IDE.
run: |
pushd ${{ runner.temp }}/IDE/com.ibm.wala.cast.lsp
mvn clean install -B -q -DskipTests
mvn install -B -q -DskipTests
popd
- name: Install Python.
uses: actions/setup-python@v5
Expand All @@ -47,4 +47,4 @@ jobs:
- name: Check formatting with spotless.
run: mvn spotless:check -B
- name: Build with Maven
run: mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties clean verify -B
run: mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -B
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ install:
- popd
- popd
- pushd /tmp/IDE/com.ibm.wala.cast.lsp
- mvn clean install -B -q -DskipTests
- mvn install -B -q -DskipTests
- popd
- pip install -r requirements.txt
script:
before_script:
- mvn spotless:check -B
- mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties clean verify -B
script:
- mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -B
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
Expand Down

0 comments on commit 00276db

Please sign in to comment.