2019-02-02 11:57:29 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2021-03-04 05:29:32 +00:00
|
|
|
build-c7-baseline:
|
2019-02-02 11:57:29 +00:00
|
|
|
docker:
|
2019-12-03 02:48:51 +00:00
|
|
|
- image: ossrs/srs:dev
|
2019-02-02 11:57:29 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2021-03-03 13:59:06 +00:00
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS baseline" &&
|
2021-03-04 00:45:01 +00:00
|
|
|
cd trunk && ./configure && make
|
2021-05-20 12:07:13 +00:00
|
|
|
build-c7-nortc:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:dev
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
|
|
|
echo "Build SRS without RTC" &&
|
|
|
|
cd trunk && ./configure --rtc=off && make
|
2021-03-04 05:29:32 +00:00
|
|
|
build-c7-noasm:
|
2021-03-04 00:45:01 +00:00
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:dev
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS without NASM or SRTP-NASM" &&
|
2021-03-04 00:45:01 +00:00
|
|
|
cd trunk && ./configure --nasm=off --srtp-nasm=off && make
|
2021-05-16 08:14:00 +00:00
|
|
|
build-c7-srt:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:dev
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS with SRT" &&
|
2021-05-16 08:14:00 +00:00
|
|
|
cd trunk && ./configure --srt=on && make
|
2021-03-04 05:29:32 +00:00
|
|
|
build-c8-baseline:
|
2021-03-04 00:45:01 +00:00
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:dev8
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS for CentOS8" &&
|
2021-03-04 00:45:01 +00:00
|
|
|
cd trunk && ./configure && make
|
2021-05-16 08:14:00 +00:00
|
|
|
build-c8-srt:
|
2021-03-04 00:45:01 +00:00
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:dev8
|
2021-05-16 08:14:00 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS with SRT for CentOS8" &&
|
2021-05-16 08:14:00 +00:00
|
|
|
cd trunk && ./configure --srt=on && make
|
|
|
|
build-u16-baseline:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu16
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS for Ubuntu16" &&
|
2021-05-16 08:14:00 +00:00
|
|
|
cd trunk && ./configure && make
|
|
|
|
build-u16-srt:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu16
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS with SRT for Ubuntu16" &&
|
2021-05-16 08:14:00 +00:00
|
|
|
cd trunk && ./configure --srt=on && make
|
|
|
|
build-u18-baseline:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu18
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS for Ubuntu18" &&
|
2021-05-16 08:14:00 +00:00
|
|
|
cd trunk && ./configure && make
|
|
|
|
build-u18-srt:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu18
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS with SRT for Ubuntu18" &&
|
2021-05-16 08:14:00 +00:00
|
|
|
cd trunk && ./configure --srt=on && make
|
|
|
|
build-u20-baseline:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu20
|
2021-03-04 00:45:01 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS for Ubuntu20" &&
|
2021-03-04 00:45:01 +00:00
|
|
|
cd trunk && ./configure && make
|
2021-05-16 08:14:00 +00:00
|
|
|
build-u20-srt:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu20
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS with SRT for Ubuntu20" &&
|
2021-05-16 08:14:00 +00:00
|
|
|
cd trunk && ./configure --srt=on && make
|
2021-03-04 02:41:23 +00:00
|
|
|
run-utest:
|
2019-02-02 11:57:29 +00:00
|
|
|
docker:
|
2019-12-03 02:48:51 +00:00
|
|
|
- image: ossrs/srs:dev
|
2019-02-02 11:57:29 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-03-31 08:40:08 +00:00
|
|
|
- run: |
|
2021-03-04 02:41:23 +00:00
|
|
|
echo "Build and run utest for SRS" &&
|
2021-06-16 05:40:54 +00:00
|
|
|
cd trunk && ./configure --utest=on --gcov=on && make &&
|
2021-03-04 09:13:24 +00:00
|
|
|
./objs/srs_utest && bash auto/codecov.sh
|
2021-03-04 02:41:23 +00:00
|
|
|
run-regression-test:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:dev
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
|
|
|
echo "Build and run SRS with regression config" &&
|
|
|
|
cd trunk && ./configure && make && ./objs/srs -c conf/regression-test.conf &&
|
|
|
|
echo "Run srs-bench regression test" &&
|
2021-03-04 05:23:01 +00:00
|
|
|
cd 3rdparty/srs-bench && make && ./objs/srs_test -test.v
|
2021-03-04 05:29:32 +00:00
|
|
|
build-c7-ansi-noff:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:dev
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
2021-05-20 12:07:13 +00:00
|
|
|
echo "Build SRS C++98(ANSI), no FFmpeg-fit" &&
|
2021-03-04 05:29:32 +00:00
|
|
|
cd trunk && ./configure --cxx11=off --cxx14=off --ffmpeg-fit=off && make
|
2021-06-21 23:49:48 +00:00
|
|
|
build-cross-build-armv7:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu16
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
|
|
|
echo "Cross build SRS for armv7" &&
|
|
|
|
cd trunk &&
|
|
|
|
./configure --cross-build --cc=arm-linux-gnueabihf-gcc --cxx=arm-linux-gnueabihf-g++ \
|
|
|
|
--ar=arm-linux-gnueabihf-ar --ld=arm-linux-gnueabihf-ld --randlib=arm-linux-gnueabihf-randlib &&
|
|
|
|
make
|
|
|
|
build-cross-build-aarch64:
|
|
|
|
docker:
|
|
|
|
- image: ossrs/srs:ubuntu16
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: |
|
|
|
|
echo "Cross build SRS for aarch64" &&
|
|
|
|
cd trunk &&
|
|
|
|
./configure --cross-build --cc=aarch64-linux-gnu-gcc --cxx=aarch64-linux-gnu-g++ \
|
|
|
|
--ar=aarch64-linux-gnu-ar --ld=aarch64-linux-gnu-ld --randlib=aarch64-linux-gnu-randlib &&
|
|
|
|
make
|
2019-02-02 11:57:29 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_and_test:
|
|
|
|
jobs:
|
2021-03-04 05:29:32 +00:00
|
|
|
- build-c7-baseline
|
2021-05-20 12:07:13 +00:00
|
|
|
- build-c7-nortc
|
2021-03-04 05:29:32 +00:00
|
|
|
- build-c7-noasm
|
2021-05-16 08:14:00 +00:00
|
|
|
- build-c7-srt
|
2021-03-04 05:29:32 +00:00
|
|
|
- build-c8-baseline
|
2021-05-16 08:14:00 +00:00
|
|
|
- build-c8-srt
|
|
|
|
- build-u16-baseline
|
|
|
|
- build-u16-srt
|
|
|
|
- build-u18-baseline
|
|
|
|
- build-u18-srt
|
2021-03-04 05:29:32 +00:00
|
|
|
- build-u20-baseline
|
2021-05-16 08:14:00 +00:00
|
|
|
- build-u20-srt
|
2021-03-04 05:29:32 +00:00
|
|
|
- build-c7-ansi-noff
|
2021-06-21 23:49:48 +00:00
|
|
|
- build-cross-build-armv7
|
|
|
|
- build-cross-build-aarch64
|
2021-07-07 00:32:07 +00:00
|
|
|
- run-utest:
|
2021-07-07 00:38:30 +00:00
|
|
|
requires:
|
|
|
|
- build-c7-baseline
|
|
|
|
- build-c7-nortc
|
|
|
|
- build-c7-noasm
|
|
|
|
- build-c7-srt
|
|
|
|
- build-c8-baseline
|
|
|
|
- build-c8-srt
|
|
|
|
- build-u16-baseline
|
|
|
|
- build-u16-srt
|
|
|
|
- build-u18-baseline
|
|
|
|
- build-u18-srt
|
|
|
|
- build-u20-baseline
|
|
|
|
- build-u20-srt
|
|
|
|
- build-c7-ansi-noff
|
|
|
|
- build-cross-build-armv7
|
|
|
|
- build-cross-build-aarch64
|
2021-07-07 00:34:02 +00:00
|
|
|
- run-regression-test:
|
2021-07-07 00:38:30 +00:00
|
|
|
requires:
|
|
|
|
- run-utest
|