1language: cpp
2dist: xenial
3
4compiler:
5  - g++
6  - clang
7
8before_install:
9  - sudo apt-get update -qq
10  - sudo apt-get install -qq nasm g++-multilib gcc-multilib libc6-dev-i386 python3-pip python3-setuptools unzip
11  - sudo python3 -m pip install meson==0.47.0
12  - wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
13  - unzip ninja-linux.zip
14  - export PATH=$PATH:$PWD
15
16install:
17  - make gmp-bootstrap
18  - make gtest-bootstrap
19  - meson builddir
20  - ninja -C builddir -v
21
22before_script:
23  - WorkingDir=`pwd`
24  - cd test/encoder_binary_comparison
25  - ./run_PrepareAllTestData.sh 64
26  - cd ${WorkingDir}
27
28env:
29  - TASK=UnitTest;      TestParameter=""
30  - TASK=BinaryCompare; TestParameter=BA_MW_D.264
31  - TASK=BinaryCompare; TestParameter=Zhling_1280x720.264
32  - TASK=BinaryCompare; TestParameter=Adobe_PDF_sample_a_1024x768_50Frms.264
33matrix:
34  exclude:
35    - compiler: clang
36      env: TASK=BinaryCompare; TestParameter=BA_MW_D.264
37    - compiler: clang
38      env: TASK=BinaryCompare; TestParameter=Zhling_1280x720.264
39    - compiler: clang
40      env: TASK=BinaryCompare; TestParameter=Adobe_PDF_sample_a_1024x768_50Frms.264
41script:
42  -  echo "currrent test is for ${TASK}"
43  -  echo "test parameter is ${TestParameter}"
44  -  ./run_Test.sh ${TASK}  ${TestParameter}
45  -  if [ ${TASK} == "UnitTest" ]; then echo "Running meson test suite"; meson test -C builddir -v; fi
46