From 03de377fd13aef1d4eff3c5c13b7a9aab14fa583 Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Fri, 30 Apr 2021 14:34:18 +0200 Subject: [PATCH] Switch from travis to git hub actions (#125) * 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 --- .github/workflows/maven.yml | 33 ++++++ .travis.yml => .old-travis/.travis.yml | 0 {.travis => .old-travis}/build.sh | 0 bundles/org.pitest.pitclipse.core/.project | 7 ++ .../org.pitest.pitclipse.target.target | 104 +++++++++--------- .../pom.xml | 5 +- .../META-INF/MANIFEST.MF | 2 +- tests/pom.xml | 5 +- 8 files changed, 98 insertions(+), 58 deletions(-) create mode 100644 .github/workflows/maven.yml rename .travis.yml => .old-travis/.travis.yml (100%) rename {.travis => .old-travis}/build.sh (100%) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..a33b81e3 --- /dev/null +++ b/.github/workflows/maven.yml @@ -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 diff --git a/.travis.yml b/.old-travis/.travis.yml similarity index 100% rename from .travis.yml rename to .old-travis/.travis.yml diff --git a/.travis/build.sh b/.old-travis/build.sh similarity index 100% rename from .travis/build.sh rename to .old-travis/build.sh diff --git a/bundles/org.pitest.pitclipse.core/.project b/bundles/org.pitest.pitclipse.core/.project index d70e2961..0f8fe85d 100644 --- a/bundles/org.pitest.pitclipse.core/.project +++ b/bundles/org.pitest.pitclipse.core/.project @@ -31,4 +31,11 @@ org.eclipse.jdt.core.javanature net.sf.eclipsecs.core.CheckstyleNature + + + .github + 2 + PARENT-2-PROJECT_LOC/.github + + diff --git a/releng/org.pitest.pitclipse.target/org.pitest.pitclipse.target.target b/releng/org.pitest.pitclipse.target/org.pitest.pitclipse.target.target index 6ac49511..7a4e18e5 100644 --- a/releng/org.pitest.pitclipse.target/org.pitest.pitclipse.target.target +++ b/releng/org.pitest.pitclipse.target/org.pitest.pitclipse.target.target @@ -3,62 +3,58 @@ - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tests/org.pitest.pitclipse.tests.coverage.report/pom.xml b/tests/org.pitest.pitclipse.tests.coverage.report/pom.xml index 798fedb7..ad554d47 100644 --- a/tests/org.pitest.pitclipse.tests.coverage.report/pom.xml +++ b/tests/org.pitest.pitclipse.tests.coverage.report/pom.xml @@ -58,11 +58,14 @@ 2.1.0 compile + + - \ No newline at end of file + diff --git a/tests/org.pitest.pitclipse.ui.tests/META-INF/MANIFEST.MF b/tests/org.pitest.pitclipse.ui.tests/META-INF/MANIFEST.MF index 00880b42..200ff6b0 100644 --- a/tests/org.pitest.pitclipse.ui.tests/META-INF/MANIFEST.MF +++ b/tests/org.pitest.pitclipse.ui.tests/META-INF/MANIFEST.MF @@ -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", diff --git a/tests/pom.xml b/tests/pom.xml index 61b7918a..a3c2f32a 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -21,7 +21,8 @@ org.pitest.pitclipse.runner.tests - org.pitest.pitclipse.ui.tests + + io.cucumber @@ -78,4 +79,4 @@ - \ No newline at end of file +