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/24 10:31:26 UTC

[pulsar] 02/03: Add Github CI workflow

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

aahmed pushed a commit to branch github_exp2
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit 35f85ec6335ca0cc990c0fa57810471167c16087
Author: Ali Ahmed <al...@gmail.com>
AuthorDate: Thu Aug 22 00:21:18 2019 -0700

    Add Github CI workflow
---
 .github/workflows/ci.yaml | 57 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..bf9de60
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,57 @@
+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
+          mvn install
+  
+      - uses: actions/upload-artifact@master
+        name: upload artifacts
+        with:
+          name: artifacts
+          path: distribution/server/target/apache-pulsar-.*-bin.tar.gz
+
+  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\
+
+  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