Skip to content

Commit

Permalink
CI - fixing travis / introducing gh actions (#26)
Browse files Browse the repository at this point in the history
* CI - using maven options to limit writes on stdout

* limiting loglevel to ERROR for spring-boot during tests

* introducing a first github action

This github-action tries to mimic what is currently done with travis. It
uses a m2 caching module as well, and uses basically the same command to
launch the testsuite.

* actually remove travis-ci

After having discussed with @fxprunayre, we decided to remove travis
builds in favor of github actions.
  • Loading branch information
pmauduit authored Dec 16, 2020
1 parent 1710a23 commit 5c0efd2
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 14 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: "Checking out"
uses: actions/checkout@v2

- name: "Setting up Java"
uses: actions/setup-java@v1
with:
java-version: '11.x'

- name: "Maven repository caching"
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Run the testsuite"
run: ./mvnw clean install -P-docker --no-transfer-progress -B
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.springframework" level="ERROR"/>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.springframework" level="ERROR"/>
</configuration>
5 changes: 5 additions & 0 deletions modules/services/indexing/src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.springframework" level="ERROR"/>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.springframework" level="ERROR"/>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.springframework" level="ERROR"/>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<logger name="org.springframework" level="ERROR"/>
</configuration>

0 comments on commit 5c0efd2

Please sign in to comment.