Skip to content

Commit

Permalink
Move spotless check earlier in build (#180)
Browse files Browse the repository at this point in the history
* Move spotless check earlier in GH Actions.

* Install Python earlier for GH Actions.

* Move spotless earlier for Travis CI.
  • Loading branch information
khatchad authored Apr 9, 2024
1 parent 5dbf07c commit 8d6b01b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Install Python.
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install Python dependencies.
run: pip install -r requirements.txt
- name: Check formatting with spotless.
run: mvn spotless:check -B
- name: Checkout wala/IDE sources.
run: git clone --depth=1 https://github.com/wala/IDE ${{ runner.temp }}/IDE
- name: Checkout ponder-lab/jython3 sources.
Expand All @@ -37,14 +46,5 @@ jobs:
pushd ${{ runner.temp }}/IDE/com.ibm.wala.cast.lsp
mvn install -B -q -DskipTests
popd
- name: Install Python.
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Install Python dependencies.
run: pip install -r requirements.txt
- name: Check formatting with spotless.
run: mvn spotless:check -B
- name: Build with Maven
run: mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -B
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ dist: jammy
language: java
jdk: openjdk11
before_install:
- pip install -r requirements.txt
- mvn spotless:check -B
- git clone --depth=50 https://github.com/wala/IDE /tmp/IDE
- git clone https://github.com/ponder-lab/jython3.git /tmp/jython3
install:
Expand All @@ -15,9 +17,6 @@ install:
- pushd /tmp/IDE/com.ibm.wala.cast.lsp
- mvn install -B -q -DskipTests
- popd
- pip install -r requirements.txt
before_script:
- mvn spotless:check -B
script:
- mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -B
before_cache:
Expand Down

0 comments on commit 8d6b01b

Please sign in to comment.