Skip to content

Commit

Permalink
Convert travis CI script into a pipeline. Switch from git://
Browse files Browse the repository at this point in the history
to https://.
  • Loading branch information
sobomax committed Apr 2, 2024
1 parent 28b90ba commit b7d8570
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python Test Workflow

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
env:
RTPP_TEST_VER: ${{ matrix.rtpp_test_ver }}
RTPP_BRANCH: ${{ matrix.rtpp_branch }}
strategy:
matrix:
python-version: ['3.10', '3.11']
rtpp-test-ver: ['production', 'debug']
rtpp-branch: ['master', 'rtpp_2_1', 'rtpp_2_0']

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Before install scripts
run: |
sh -x ./scripts/travis/hack_travis_ipv6.sh
sh -x ./scripts/travis/install_depends.sh
- name: Run tests
run: sh -x ./scripts/travis/test_run.sh
13 changes: 3 additions & 10 deletions scripts/travis/install_depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ cd "${DISTDIR}"

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

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

Expand All @@ -29,12 +29,5 @@ cd rtpproxy
${MAKE_CMD} all
cd ..

git clone git://github.com/sobomax/libelperiodic.git
cd libelperiodic
./configure
make all
sudo make install
sudo ldconfig
python setup.py clean build install
pip install ElPeriodic
python -c "from elperiodic.ElPeriodic import ElPeriodic"
cd ..

0 comments on commit b7d8570

Please sign in to comment.