You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2021/10/01 12:22:43 UTC

[syncope] branch 2_1_X updated: Forget about Travis CI (#292)

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new 79dfa8b  Forget about Travis CI (#292)
79dfa8b is described below

commit 79dfa8b6d9397fc805788242d621d750f5d938d6
Author: Francesco Chicchiriccò <il...@users.noreply.github.com>
AuthorDate: Fri Oct 1 14:22:37 2021 +0200

    Forget about Travis CI (#292)
---
 .github/workflows/crosschecks.yml        | 60 ++++++++++++++++++++++++++++++++
 .github/workflows/fit_Tomcat_H2_JSON.yml | 51 +++++++++++++++++++++++++++
 .travis.yml                              | 30 ----------------
 3 files changed, 111 insertions(+), 30 deletions(-)

diff --git a/.github/workflows/crosschecks.yml b/.github/workflows/crosschecks.yml
new file mode 100644
index 0000000..b211476
--- /dev/null
+++ b/.github/workflows/crosschecks.yml
@@ -0,0 +1,60 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License
+name: "Cross Checks"
+
+on:
+  push:
+    branches: [2_1_X]
+  pull_request:
+    # The branches below must be a subset of the branches above
+    branches: [2_1_X]
+  schedule:
+    - cron: '0 13 * * 4'
+
+jobs:
+  crosschecks:
+    runs-on: ${{ matrix.os }}
+
+    strategy:
+      fail-fast: false
+      matrix:
+        language: ['java']
+        java: [ '8' ]
+        os: [ubuntu-latest, windows-latest, macos-latest]
+
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v2
+    - name: Setup Java JDK
+      uses: actions/setup-java@v1.4.3
+      with:
+        java-version: ${{ matrix.java }}
+    - name: Setup Maven
+      uses: stCarolas/setup-maven@v4
+      with:
+        maven-version: 3.6.3
+    - uses: actions/cache@v2.1.1
+      with:
+        path: ~/.m2
+        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+        restore-keys: ${{ runner.os }}-m2
+    - name: Build
+      run: mvn -U -T 1C -P 'skipTests,all,without-eclipse'
+    - name: Validate
+      run: mvn -T 1C -P 'all,without-eclipse' checkstyle:check tools:verify-legal-files modernizer:modernizer apache-rat:check
+    - name: Test
+      run: mvn -T 1C -P 'all,without-eclipse' clean test '-Dinvoker.streamLogs=true' '-Dmodernizer.skip=true' '-Dianal.phase=none' '-Drat.skip=true' '-Dcheckstyle.skip=true' '-Dsass.skip=true'
diff --git a/.github/workflows/fit_Tomcat_H2_JSON.yml b/.github/workflows/fit_Tomcat_H2_JSON.yml
new file mode 100644
index 0000000..08a5e05
--- /dev/null
+++ b/.github/workflows/fit_Tomcat_H2_JSON.yml
@@ -0,0 +1,51 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License
+name: "FIT Tomcat H2 JSON"
+
+on:
+  push:
+    branches: [2_1_X]
+  pull_request:
+    # The branches below must be a subset of the branches above
+    branches: [2_1_X]
+  schedule:
+    - cron: '0 13 * * 4'
+
+jobs:
+  fit_Tomcat_H2_JSON:
+    runs-on: ubuntu-latest
+
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v2
+    - name: Setup Java JDK
+      uses: actions/setup-java@v1.4.3
+      with:
+        java-version: 8
+    - name: Setup Maven
+      uses: stCarolas/setup-maven@v4
+      with:
+        maven-version: 3.6.3
+    - uses: actions/cache@v2.1.1
+      with:
+        path: ~/.m2
+        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+        restore-keys: ${{ runner.os }}-m2
+    - name: Build
+      run: mvn -U -T 1C -P 'skipTests,all,without-eclipse'
+    - name: 'Tomcat / H2 / JSON'
+      run: mvn -f fit/core-reference/pom.xml verify -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Drat.skip=true -Dcheckstyle.skip=true -Djacoco.skip=true
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index f41d8ad..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-sudo: false
-language: java
-jdk:
-  - openjdk8
-before_install:
-  - echo 'MAVEN_OPTS="-Xms512m -Xmx1024m -XX:+TieredCompilation -XX:TieredStopAtLevel=1"' >~/.mavenrc
-install: travis_wait 30 mvn --quiet -T 1C -P all,skipTests,without-eclipse
-script:
-  - mvn -Pall,without-eclipse -pl !fit/enduser-reference verify -Dinvoker.streamLogs=true
-after_failure:
-  - cat target/log/*
-  - cat target/failsafe-reports/org.apache.syncope.fit.*-output.txt
-notifications:
-  email:
-    - dev@syncope.apache.org