1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00
srs/.circleci/config.yml

75 lines
2.1 KiB
YAML
Raw Normal View History

2019-02-02 11:57:29 +00:00
version: 2
jobs:
2021-03-04 00:45:01 +00:00
build-centos7-baseline:
2019-02-02 11:57:29 +00:00
docker:
- image: ossrs/srs:dev
2019-02-02 11:57:29 +00:00
steps:
- checkout
2021-03-03 13:59:06 +00:00
- run: |
2021-03-04 02:41:23 +00:00
echo "Build and run SRS baseline" &&
2021-03-04 00:45:01 +00:00
cd trunk && ./configure && make
build-centos7-noasm:
docker:
- image: ossrs/srs:dev
steps:
- checkout
- run: |
2021-03-04 02:41:23 +00:00
echo "Build and run SRS without NASM or SRTP-NASM" &&
2021-03-04 00:45:01 +00:00
cd trunk && ./configure --nasm=off --srtp-nasm=off && make
build-centos7-gb28181:
docker:
- image: ossrs/srs:dev
steps:
- checkout
- run: |
2021-03-04 02:41:23 +00:00
echo "Build and run SRS with GB28181" &&
2021-03-04 00:45:01 +00:00
cd trunk && ./configure --gb28181=on && make
build-centos8-baseline:
docker:
- image: ossrs/srs:dev8
steps:
- checkout
- run: |
2021-03-04 02:41:23 +00:00
echo "Build and run SRS for CentOS8" &&
2021-03-04 00:45:01 +00:00
cd trunk && ./configure && make
build-ubuntu20-baseline:
docker:
- image: ossrs/srs:dev8
steps:
- checkout
- run: |
2021-03-04 02:41:23 +00:00
echo "Build and run SRS for Ubuntu20" &&
2021-03-04 00:45:01 +00:00
cd trunk && ./configure && make
2021-03-04 02:41:23 +00:00
run-utest:
2019-02-02 11:57:29 +00:00
docker:
- 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" &&
cd trunk && ./configure --gb28181=on --utest=on --gcov=on && make &&
2020-03-31 08:40:08 +00:00
./objs/srs_utest && bash auto/coverage.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 "Clone srs-bench for regression test" &&
cd 3rdparty && git clone -b feature/srs --depth=1 https://github.com/ossrs/srs-bench &&
echo "Run srs-bench regression test" &&
cd srs-bench && make && ./objs/srs_test -test.v
2019-02-02 11:57:29 +00:00
workflows:
version: 2
build_and_test:
jobs:
2021-03-04 00:45:01 +00:00
- build-centos7-baseline
2021-03-04 02:41:23 +00:00
- run-utest
- run-regression-test
2021-03-04 00:45:01 +00:00
- build-centos7-noasm
- build-centos7-gb28181
- build-centos8-baseline
- build-ubuntu20-baseline