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

zhoubo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-spring.git


The following commit(s) were added to refs/heads/master by this push:
     new b008ae2  [ISSUE #517] Remove travis CI and add license-checker 
workflow (#518)
b008ae2 is described below

commit b008ae2380660aad908a9261af4d80f8151fdd3a
Author: rongtong <[email protected]>
AuthorDate: Sat Jan 28 10:52:08 2023 +0800

    [ISSUE #517] Remove travis CI and add license-checker workflow (#518)
    
    * Remove travis CI and add license-checker workflow
    
    * Add coverage workflow
    
    * Make license-checker can pass
    
    * Make license-checker can pass
---
 .asf.yaml                              | 15 ++++++++++++
 .github/workflows/coverage.yml         | 40 +++++++++++++++++++++++++++++++
 .github/workflows/license-checker.yaml | 33 ++++++++++++++++++++++++++
 .github/workflows/maven.yml            | 16 +++++++++++--
 .licenserc.yaml                        | 43 ++++++++++++++++++++++++++++++++++
 .travis.yml                            | 35 ---------------------------
 pom.xml                                |  1 -
 7 files changed, 145 insertions(+), 38 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 99596cf..1723bc7 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,3 +1,18 @@
+# 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.
+
 notifications:
   commits:      [email protected]
   issues:       [email protected]
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
new file mode 100644
index 0000000..44b3027
--- /dev/null
+++ b/.github/workflows/coverage.yml
@@ -0,0 +1,40 @@
+# 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: Coverage
+on:
+  pull_request:
+    types: [opened, reopened, synchronize]
+  push:
+    branches: [master, develop]
+jobs:
+  calculate-coverage:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@master
+      - name: Set up JDK 8
+        uses: actions/setup-java@v2
+        with:
+          java-version: "8"
+          distribution: "adopt"
+          cache: "maven"
+      - name: Generate coverage report
+        run: mvn -B test -T 2C --file pom.xml
+      - name: Upload to Codecov
+        uses: codecov/codecov-action@v3
+        with:
+          fail_ci_if_error: true
+          verbose: true
diff --git a/.github/workflows/license-checker.yaml 
b/.github/workflows/license-checker.yaml
new file mode 100644
index 0000000..66ad784
--- /dev/null
+++ b/.github/workflows/license-checker.yaml
@@ -0,0 +1,33 @@
+# 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: License checker
+
+on:
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  check-license:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - name: Check License Header
+        uses: apache/[email protected]
+        with:
+          log: info
+          config: .licenserc.yaml
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 502d63a..49b064d 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -1,5 +1,17 @@
-# This workflow will build a Java project with Maven, and cache/restore any 
dependencies to improve the workflow execution time
-# For more information see: 
https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+# 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: Java CI with Maven
 
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 0000000..ba91d1f
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,43 @@
+#
+# 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.
+#
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+
+  paths-ignore:
+    - '.gitignore'
+    - 'CONTRIBUTING.md'
+    - 'LICENSE'
+    - 'NOTICE'
+    - '**/*.md'
+    - 'BUILDING'
+    - '.github/**'
+    - '*/src/test/resources/certs/*'
+    - 'src/test/**/*.log'
+    - '*/src/test/resources/META-INF/service/*'
+    - '*/src/main/resources/META-INF/service/*'
+    - '**/*/spring.factories'
+    - '**/target/**'
+    - '**/*.iml'
+    - 'docs/**'
+    - '**/application.properties'
+
+
+  comment: on-failure
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 49be497..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-dist: trusty
-
-notifications:
-  email:
-    recipients:
-      - [email protected]
-  on_success: change
-  on_failure: always
-
-language: java
-
-jdk:
-  - oraclejdk8
-
-matrix:
-  include:
-  # On OSX, run with default JDK only.
-  # - os: osx
-  # On Linux, run with specific JDKs only.
-  - os: linux
-    env: CUSTOM_JDK="oraclejdk8"
-
-before_install:
-  - echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m 
-XX:+BytecodeVerificationLocal"' >> ~/.mavenrc
-  - cat ~/.mavenrc
-  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export 
JAVA_HOME=$(/usr/libexec/java_home); fi
-  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; 
fi
-
-script:
-  - travis_retry mvn -B clean apache-rat:check
-  - travis_retry mvn -B package jacoco:report coveralls:report
-
-after_success:
-  # - mvn clean install -Pit-test
-  - mvn sonar:sonar -Psonar-apache
diff --git a/pom.xml b/pom.xml
index 06e1522..e57bf32 100644
--- a/pom.xml
+++ b/pom.xml
@@ -169,7 +169,6 @@
                 <configuration>
                     <excludes>
                         <exclude>.gitignore</exclude>
-                        <exclude>.travis.yml</exclude>
                         <exclude>.asf.yaml</exclude>
                         <exclude>CONTRIBUTING.md</exclude>
                         <exclude>**/README.md</exclude>

Reply via email to