You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by aa...@apache.org on 2019/08/28 19:06:11 UTC
[pulsar] 01/01: Add Github workflow for gated checkin
This is an automated email from the ASF dual-hosted git repository.
aahmed pushed a commit to branch ci_1
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit c9790e401fd29fc2f18d7c375695cfb1abb55c82
Author: Ali Ahmed <al...@gmail.com>
AuthorDate: Wed Aug 28 12:05:39 2019 -0700
Add Github workflow for gated checkin
---
.github/workflows/cpp-ci.yaml | 22 ++++++++++++++++++++++
.github/workflows/integration-ci.yaml | 19 +++++++++++++++++++
.github/workflows/unit-ci.yaml | 20 ++++++++++++++++++++
3 files changed, 61 insertions(+)
diff --git a/.github/workflows/cpp-ci.yaml b/.github/workflows/cpp-ci.yaml
new file mode 100644
index 0000000..21c228a
--- /dev/null
+++ b/.github/workflows/cpp-ci.yaml
@@ -0,0 +1,22 @@
+name: CI
+on: [pull_request]
+
+jobs:
+
+ cpp-integration:
+ name: C++ / Python tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@master
+
+ - name: run c++ tests
+ run: |
+ java -version
+ javac -version
+ mvn -B clean package -DskipTests
+ echo "Build C++ client library"
+ export CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_DYNAMIC_LIB=OFF"
+ pulsar-client-cpp/docker-build.sh
+ pulsar-client-cpp/docker-tests.sh
\ No newline at end of file
diff --git a/.github/workflows/integration-ci.yaml b/.github/workflows/integration-ci.yaml
new file mode 100644
index 0000000..bbf7ad9
--- /dev/null
+++ b/.github/workflows/integration-ci.yaml
@@ -0,0 +1,19 @@
+name: CI
+on: [pull_request]
+
+jobs:
+
+ build-integration:
+ name: Integration tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@master
+
+ - name: run integration tests
+ run: |
+ java -version
+ javac -version
+ mvn install -Pdocker -DskipTests
+ mvn -f tests/pom.xml test -DintegrationTests
\ No newline at end of file
diff --git a/.github/workflows/unit-ci.yaml b/.github/workflows/unit-ci.yaml
new file mode 100644
index 0000000..dd56776
--- /dev/null
+++ b/.github/workflows/unit-ci.yaml
@@ -0,0 +1,20 @@
+name: CI
+on: [pull_request]
+
+jobs:
+
+ build-unit:
+ name: Unit tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@master
+
+ - name: run unit tests
+ run: |
+ java -version
+ javac -version
+ export TEST_TIMEOUT_ENV_MILLIS=30000
+ export TEST_RETRY_COUNT=3
+ mvn install
\ No newline at end of file