Skip to content

Commit ea9c9c7

Browse files
committed
Convert travis CI script into a pipeline. Switch from git://
to https://.
1 parent ec42798 commit ea9c9c7

File tree

4 files changed

+36
-11
lines changed

4 files changed

+36
-11
lines changed

.github/workflows/basic.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python Test Workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
env:
9+
RTPP_TEST_VER: ${{ matrix.rtpp_test_ver }}
10+
RTPP_BRANCH: ${{ matrix.rtpp_branch }}
11+
strategy:
12+
matrix:
13+
python-version: ['3.10', '3.11']
14+
rtpp-test-ver: ['production', 'debug']
15+
rtpp-branch: ['master', 'v3.0.1', 'rtpp_2_2_1', 'rtpp_2_1', 'rtpp_2_0']
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Before install scripts
26+
run: |
27+
sh -x ./scripts/travis/hack_travis_ipv6.sh
28+
sh -x ./scripts/travis/install_depends.sh
29+
30+
- name: Run tests
31+
run: sh -x ./scripts/travis/test_run.sh

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Test Status](https://travis-ci.com/sippy/rtp_cluster.svg?branch=master)](https://travis-ci.com/sippy/rtp_cluster)
1+
[![Test Status](https://github.com/sippy/rtp_cluster/actions/workflows/basic.yml/badge.svg?branch=master)](https://github.com/sippy/rtp_cluster/actions/workflows/basic.yml?query=branch%3Amaster++)
22

33
# RTP Cluster - a front-end for the distributed RTPproxy network
44

scripts/travis/functions.sub

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
SHELL="${SHELL:-"/bin/sh"}"
12
BUILDDIR="${BUILDDIR:-${BASEDIR}}"
23

34
DISTDIR="${BUILDDIR}/dist"

scripts/travis/install_depends.sh

+3-10
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ cd "${DISTDIR}"
1616

1717
RTPP_BRANCH=${RTPP_BRANCH:-"master"}
1818
MAKE_CMD="make"
19-
git clone -b "${RTPP_BRANCH}" --recursive git://github.com/sippy/rtpproxy.git
19+
git clone -b "${RTPP_BRANCH}" --recursive https://github.com/sippy/rtpproxy.git
2020

2121
##if [ "${RTPP_BRANCH}" != "master" ]
2222
##then
23-
## git clone -b master --recursive git://github.com/sippy/rtpproxy.git \
23+
## git clone -b master --recursive https://github.com/sippy/rtpproxy.git \
2424
## "${RTPPDDIR_m}"
2525
##fi
2626

@@ -29,12 +29,5 @@ cd rtpproxy
2929
${MAKE_CMD} all
3030
cd ..
3131

32-
git clone git://github.com/sobomax/libelperiodic.git
33-
cd libelperiodic
34-
./configure
35-
make all
36-
sudo make install
37-
sudo ldconfig
38-
python setup.py clean build install
32+
pip install ElPeriodic
3933
python -c "from elperiodic.ElPeriodic import ElPeriodic"
40-
cd ..

0 commit comments

Comments
 (0)