[sr-dev] git:master:30f1c7b6: github/workflows: main workflow

Victor Seva linuxmaniac at torreviejawireless.org
Thu Mar 25 00:17:58 CET 2021


Module: kamailio
Branch: master
Commit: 30f1c7b6521fba17e064262b32e11b33da7678ab
URL: https://github.com/kamailio/kamailio/commit/30f1c7b6521fba17e064262b32e11b33da7678ab

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2021-03-25T00:17:47+01:00

github/workflows: main workflow

* migration from travis-ci to github actions

---

Added: .github/workflows/main.yml
Modified: README.md
Removed: .travis.yml

---

Diff:  https://github.com/kamailio/kamailio/commit/30f1c7b6521fba17e064262b32e11b33da7678ab.diff
Patch: https://github.com/kamailio/kamailio/commit/30f1c7b6521fba17e064262b32e11b33da7678ab.patch

---

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000000..f4059cd155
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,39 @@
+---
+name: build
+'on':
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    container:
+      image: kamailio/pkg-kamailio-docker:dev-${{ matrix.distribution }}
+      volumes:
+        - ${{ github.workspace }}:/code
+      env:
+        DIST: ${{ matrix.distribution }}
+        CC: ${{ matrix.compilier }}
+    strategy:
+      matrix:
+        include:
+          - distribution: buster
+            compilier: gcc
+          - distribution: buster
+            compilier: clang
+          - distribution: sid
+            compilier: gcc
+          - distribution: sid
+            compilier: clang
+    steps:
+      - uses: actions/checkout at v2
+      - name: build
+        run: |
+          cd /code
+          ./test/travis/build_travis.sh
+        shell: bash
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 73638bb613..0000000000
--- a/.travis.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-sudo: required
-language: c
-compiler:
-  - gcc
-  - clang
-env:
-  - DIST=buster
-  - DIST=sid
-services:
-  - docker
-before_install:
-  - docker pull kamailio/pkg-kamailio-docker:dev-$DIST
-script: docker run -v $TRAVIS_BUILD_DIR:/code:rw kamailio/pkg-kamailio-docker:dev-$DIST /bin/bash -c "cd /code; CC=$CC DIST=$DIST ./test/travis/build_travis.sh"
-branches:
-  only:
-    - 'master'
-    - '/^5\.[0-9]+$/'
-notifications:
-  irc:
-    channels:
-      - "chat.freenode.net#kamailio-dev"
-    on_success: never
-    on_failure: always
-  email:
-    recipients:
-      - sr-dev at lists.kamailio.org
-    on_success: never
-    on_failure: always
diff --git a/README.md b/README.md
index 6649dc692c..ede4d1a3b2 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # Kamailio - The Open Source SIP Server
 
-[![Build Status](https://travis-ci.org/kamailio/kamailio.svg?branch=master)](https://travis-ci.org/kamailio/kamailio)
+[![Build Status](https://github.com/kamailio/kamailio/actions/workflows/main.yml/badge.svg)](https://github.com/kamailio/kamailio/actions)
 [![Code Triage Badge](https://www.codetriage.com/kamailio/kamailio/badges/users.svg)](https://www.codetriage.com/kamailio/kamailio)
 
 Project Website:




More information about the sr-dev mailing list