Skip to content

Commit

Permalink
Switch from travis to git hub actions (#125)
Browse files Browse the repository at this point in the history
* Moved Travis files

* GitHub Actions workflow

* Try with ubuntu-16.04

* Try with ubuntu-18.04

* use 0.0.0 in TP

* take SWTBot from eclipse release site

* removed version range for SWTBot

* Disabled UI.tests GitHub Actions

* Disabled UI.tests from report
  • Loading branch information
LorenzoBettini authored Apr 30, 2021
1 parent 24ccae8 commit 03de377
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 58 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Java CI with Maven

on:
push:
paths-ignore:
- 'README.md'
pull_request:
paths-ignore:
- 'README.md'

jobs:
build:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
with:
# Shallow clones should be disabled for a better relevancy of SonarQube analysis
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: |
~/.m2
~/.sonar/cache
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/*.yml', '**/*.target') }}
restore-keys: ${{ runner.os }}-m2-
- name: Maven Build
run: xvfb-run mvn verify -Pjacoco
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions bundles/org.pitest.pitclipse.core/.project
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,11 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
</natures>
<linkedResources>
<link>
<name>.github</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC/.github</locationURI>
</link>
</linkedResources>
</projectDescription>
104 changes: 50 additions & 54 deletions releng/org.pitest.pitclipse.target/org.pitest.pitclipse.target.target
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,58 @@
<target name="org.pitest.pitclipse.target">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.e4.core.tools.feature.source.feature.group" version="4.7.0.v20170515-1617"/>
<unit id="org.eclipse.jdt.feature.group" version="3.13.2.v20171130-0906"/>
<unit id="org.eclipse.pde.feature.group" version="3.13.2.v20171130-0510"/>
<unit id="org.eclipse.sdk.feature.group" version="4.7.2.v20171130-0906"/>
<repository location="http://download.eclipse.org/releases/oxygen"/>
</location>
<unit id="org.eclipse.e4.core.tools.feature.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.feature.group" version="0.0.0"/>
<unit id="org.eclipse.pde.feature.group" version="0.0.0"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.eclipse.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/releases/oxygen"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="com.google.guava" version="21.0.0.v20170206-1425"/>
<unit id="com.google.guava.source" version="21.0.0.v20170206-1425"/>
<unit id="org.apache.commons.lang3" version="3.1.0.v201403281430"/>
<unit id="org.hamcrest.core" version="1.3.0.v20180420-1519"/>
<unit id="org.hamcrest.core.source" version="1.3.0.v20180420-1519"/>
<unit id="org.jmock" version="1.2.0.v201303080310"/>
<unit id="org.junit" version="4.12.0.v201504281640"/>
<unit id="org.junit.jupiter.api" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.jupiter.api.source" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.jupiter.engine" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.jupiter.engine.source" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.jupiter.migrationsupport" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.jupiter.migrationsupport.source" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.jupiter.params" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.jupiter.params.source" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.platform.commons" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.commons.source" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.engine" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.engine.source" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.launcher" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.launcher.source" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.runner" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.runner.source" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.suite.api" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.platform.suite.api.source" version="1.1.0.v20180327-1502"/>
<unit id="org.junit.source" version="4.12.0.v201504281640"/>
<unit id="org.junit.vintage.engine" version="5.1.0.v20180327-1502"/>
<unit id="org.junit.vintage.engine.source" version="5.1.0.v20180327-1502"/>
<unit id="org.mockito" version="1.9.5.v201605172210"/>
<unit id="org.mockito.source" version="1.9.5.v201605172210"/>
<unit id="org.objenesis" version="1.0.0.v201505121915"/>
<unit id="org.objenesis" version="2.6.0.v20180420-1519"/>
<unit id="org.slf4j.apis.log4j" version="1.7.10.v20160208-0839"/>
<unit id="com.google.guava" version="0.0.0"/>
<unit id="com.google.guava.source" version="0.0.0"/>
<unit id="org.apache.commons.lang3" version="0.0.0"/>
<unit id="org.hamcrest.core" version="0.0.0"/>
<unit id="org.hamcrest.core.source" version="0.0.0"/>
<unit id="org.jmock" version="0.0.0"/>
<unit id="org.junit" version="0.0.0"/>
<unit id="org.junit.jupiter.api" version="0.0.0"/>
<unit id="org.junit.jupiter.api.source" version="0.0.0"/>
<unit id="org.junit.jupiter.engine" version="0.0.0"/>
<unit id="org.junit.jupiter.engine.source" version="0.0.0"/>
<unit id="org.junit.jupiter.migrationsupport" version="0.0.0"/>
<unit id="org.junit.jupiter.migrationsupport.source" version="0.0.0"/>
<unit id="org.junit.jupiter.params" version="0.0.0"/>
<unit id="org.junit.jupiter.params.source" version="0.0.0"/>
<unit id="org.junit.platform.commons" version="0.0.0"/>
<unit id="org.junit.platform.commons.source" version="0.0.0"/>
<unit id="org.junit.platform.engine" version="0.0.0"/>
<unit id="org.junit.platform.engine.source" version="0.0.0"/>
<unit id="org.junit.platform.launcher" version="0.0.0"/>
<unit id="org.junit.platform.launcher.source" version="0.0.0"/>
<unit id="org.junit.platform.runner" version="0.0.0"/>
<unit id="org.junit.platform.runner.source" version="0.0.0"/>
<unit id="org.junit.platform.suite.api" version="0.0.0"/>
<unit id="org.junit.platform.suite.api.source" version="0.0.0"/>
<unit id="org.junit.source" version="0.0.0"/>
<unit id="org.junit.vintage.engine" version="0.0.0"/>
<unit id="org.junit.vintage.engine.source" version="0.0.0"/>
<unit id="org.mockito" version="0.0.0"/>
<unit id="org.mockito.source" version="0.0.0"/>
<unit id="org.objenesis" version="0.0.0"/>
<unit id="org.slf4j.apis.log4j" version="0.0.0"/>
<unit id="org.hamcrest" version="0.0.0"/>
<unit id="org.hamcrest.generator" version="0.0.0"/>
<unit id="org.hamcrest.generator.source" version="0.0.0"/>
<unit id="org.hamcrest.integration" version="0.0.0"/>
<unit id="org.hamcrest.integration.source" version="0.0.0"/>
<unit id="org.hamcrest.library" version="0.0.0"/>
<unit id="org.hamcrest.library.source" version="0.0.0"/>
<unit id="org.hamcrest.text" version="0.0.0"/>
<unit id="org.hamcrest.text.source" version="0.0.0"/>
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20180606145124/repository"/>
<unit id="org.mockito" version="2.13.0.v20180426-1843"/>
<unit id="org.hamcrest" version="1.1.0.v20090501071000"/>
<unit id="org.hamcrest.generator" version="1.3.0.v201305210900"/>
<unit id="org.hamcrest.generator.source" version="1.3.0.v201305210900"/>
<unit id="org.hamcrest.integration" version="1.3.0.v201305210900"/>
<unit id="org.hamcrest.integration.source" version="1.3.0.v201305210900"/>
<unit id="org.hamcrest.library" version="1.3.0.v20180524-2246"/>
<unit id="org.hamcrest.library.source" version="1.3.0.v20180524-2246"/>
<unit id="org.hamcrest.text" version="1.1.0.v20090501071000"/>
<unit id="org.hamcrest.text.source" version="1.1.0.v20090501071000"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="http://download.eclipse.org/technology/swtbot/releases/2.7.0"/>
<unit id="org.eclipse.swtbot.eclipse.feature.group" version="2.7.0.201806111355"/>
<unit id="org.eclipse.swtbot.feature.group" version="2.7.0.201806111355"/>
</location>
</locations>
</target>
5 changes: 4 additions & 1 deletion tests/org.pitest.pitclipse.tests.coverage.report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@
<version>2.1.0</version>
<scope>compile</scope>
</dependency>
<!-- Hangs in GitHub Actions so it's temporarily disabled -->
<!--
<dependency>
<groupId>org.pitest</groupId>
<artifactId>org.pitest.pitclipse.ui.tests</artifactId>
<version>2.1.0</version>
<scope>test</scope>
</dependency>
-->
</dependencies>
</project>
</project>
2 changes: 1 addition & 1 deletion tests/org.pitest.pitclipse.ui.tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Bundle-Vendor: Pitest.org
Fragment-Host: org.pitest.pitclipse.ui;bundle-version="2.0.0"
Automatic-Module-Name: org.pitest.pitclipse.ui.tests
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.eclipse.swtbot.eclipse.finder;bundle-version="2.7.0",
Require-Bundle: org.eclipse.swtbot.eclipse.finder,
org.hamcrest.library,
org.junit;bundle-version="4.12.0",
org.pitest.pitclipse.runner;bundle-version="2.0.0",
Expand Down
5 changes: 3 additions & 2 deletions tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
<modules>
<!-- Test fragments -->
<module>org.pitest.pitclipse.runner.tests</module>
<module>org.pitest.pitclipse.ui.tests</module>
<!-- Hangs in GitHub Actions so it's temporarily disabled -->
<!-- <module>org.pitest.pitclipse.ui.tests</module> -->

<!-- Test dependencies -->
<module>io.cucumber</module>
Expand Down Expand Up @@ -78,4 +79,4 @@
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit 03de377

Please sign in to comment.