forked from alibaba/CicadaPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (44 loc) · 2.2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: cpp
sudo: required
dist: bionic
compiler:
- clang
os:
- linux
env:
global:
- secure: "zG3JVI68R4oW+38qvm5vQVWnfhdoiQrJMqafLHoMIRcwtfSSRdkzTwZwp833SXasbnBQ9sZ+Gtfh3L35Nk+YzarAGVa55Lp8NgO9SGUyjzajbjIPFUQH48/FVqOuj1NAbrsQr+CTXnHg82cUgScSiNYCRcg8u49TvpoBT64RVfPF4/thLg8M67cdxa8+ycci8yK2OOraVLeY7ZbkbZmU4jQt5K2gEjgO0B/JWk2lq/aRlr3BrVkykU0QS1niWma114VJVL269Irh/bv+uuKS2LKeeVlQOxKeIhw3iigqen5oHRFHBtI7u3JIlTAaIh9c6HO05AqQvt3NTaApbFaayXq2kWRHXx4LVgDqPm97V9umDxS4LyPrvPVyFkc5i3KmwboE5naueGws5TT5GC0Z3weDfRUbWT0uGuMq6zmnOkRGoCzk6piyamr9tu4ssIR+Za0hwhEVu6OJPKu06ix6lcUZhpPy78vSURHBIAM+zD5ciER7YuhpysqtuYckRaQh6cofwf3pIzzm/zyszg3xaVDqUmCfhpm0MkzhSfFm9wSBDWkXVSLV2ZQK8lxKCIHaAiHdHm2l7KXCl7f/c/YgScihyUhSohjfZZIrCafd9Jo3RSY9XJ88kOerWYDwEZ+k99TDgoof/e3amOq1/zhqaiew7jii02EeXKea3LBf/ps="
before_install:
- sudo apt-get update
- sudo apt-get install -y yasm
- sudo apt-get install -y libsdl2-dev
- wget "https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.tar.gz"
- tar zxvf cmake-3.16.2-Linux-x86_64.tar.gz
- export PATH=`pwd`/cmake-3.16.2-Linux-x86_64/bin:$PATH
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
before_script:
- . setup.env
- cd external/
- ./build_external.sh Linux
- cd ../
script:
- mkdir build
- cd build
- cmake -DCODE_COVERAGE=ON -DTRAVIS=ON -DUSEASAN=ON -DCMAKE_BUILD_TYPE=Debug ../
- cmake --build . --config Debug -- -j8
after_success:
- cd mediaPlayer/tests/
- ctest -j8 --output-on-failure
- bash <(curl -s https://codecov.io/bash) -x "llvm-cov gcov" || echo "Codecov did not collect coverage reports"
- cd ../../framework/tests/
- ctest -j8 --output-on-failure
- bash <(curl -s https://codecov.io/bash) -x "llvm-cov gcov" || echo "Codecov did not collect coverage reports"
addons:
coverity_scan:
project:
name: "alibaba/CicadaPlayer"
description: "<Your project description here>"
notification_email: [email protected]
build_command_prepend: . setup.env;cd external/;./build_external.sh Linux;cd ../;cd cmdline/build;cmake ../;
build_command: make cicadaPlayer
branch_pattern: coverity_scan