VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/.travis.yml@ 95219

Last change on this file since 95219 was 91612, checked in by vboxsync, 3 years ago

src/libs: Export libtpms-0.9.0, bugref:10078

File size: 3.6 KB
Line 
1language: c
2dist: xenial
3env:
4 global:
5 secure: THraWTkpyL+b3lcnLenhXR6sxphcJS23MoUP36PT9VYhgZRI2YjO1w2h4V0uwzovbGJDU4Tc88Yxn8kL4RSgwy9cIcJcTOAorbePVRd+UFVU0nUjhwYLCKYBTLVLo7lYc0FHTgsdsba65X6keuSlAdegzCRbTvcwNqX9nanSRGI1CvYcwx22Iu5eOdJvMjwIuFOuECs7hVFrGS2rvGoyzqGNMT4A8shXOBZM/pwklRFS1oS/L1g45y3OP27yqINjtfC7wXRGsR8ItH7LAaQ+yCzNg3QzSd/3H3niEC5grcEMS23YugFUkGpqSca8SGJmkK2LFaBctpZS1P75lA/47Bxbh/byu85TUE6wZ+VPm520NkiYtBB+oxIbq1mYv+hhKuxPf5OqzdwLXVO7EAfzO57VkUqQfumWIZqV0WqCU3SdpRk+CUCCURR4P0ww+w6hQx6PzK21+d9tLtqMqdRwuricdyeLvxboWQXXl36fPf4ifmi0AZ6ILaV/LUQu24Di56RG4hO+/Pv/Qqxa8rJLpqJa0PtsYIiBNeVYLH/ZYIlS8saBedMIJ9dqh1dvBw/Jql8EZCOWif6UjYzQFgZAOZQqH9VAp1WVwQxQRo+Sq7dy+MtRKT2GEcNrdfYcL6qucBAQY00vQQBfl+FOnEzIAUImt4tbitnYTxmNx8N+QZU=
6addons:
7 apt:
8 packages:
9 - automake
10 - autoconf
11 - pkgconf
12 - libtool
13 - libssl-dev
14 - sed
15 - make
16 - gawk
17 - sed
18 - bash
19 - dh-exec
20 - libseccomp-dev
21 coverity_scan:
22 project:
23 name: libtpms
24 description: Build submitted via Travis CI
25 notification_email: stefanb@linux.vnet.ibm.com
26 build_command_prepend: "./autogen.sh --with-openssl --with-tpm2; make clean"
27 build_command: make -j$(nproc)
28 branch_pattern: coverity_scan
29script:
30 - ./autogen.sh ${CONFIG}
31 - make -j$(${NPROC}) ${TARGET}
32after_failure:
33 - for f in tests/*.log; do echo ">>>>>>> $f <<<<<<<"; tail -n 50 $f; done
34before_install:
35 - test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
36matrix:
37 include:
38 - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2" "TARGET=distcheck"
39 NPROC="nproc" CFLAGS="-O3"
40 - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2 --enable-test-coverage"
41 TARGET="install" NPROC="nproc"
42 dist: bionic
43 before_script:
44 - sudo pip install cpp-coveralls
45 script:
46 ./autogen.sh ${CONFIG} &&
47 sudo make -j$(nproc) ${TARGET} &&
48 sudo make -j$(nproc) check &&
49 git clone https://github.com/stefanberger/swtpm.git &&
50 pushd swtpm &&
51 sudo rm -rf /dev/tpm* &&
52 sudo apt -y install devscripts equivs python3-twisted expect
53 libtasn1-dev socat findutils gnutls-dev gnutls-bin tss2
54 python3-setuptools libjson-glib-dev &&
55 ./autogen.sh --with-gnutls --prefix=/usr &&
56 export SWTPM_TEST_EXPENSIVE=1 SWTPM_TEST_IBMTSS2=1 &&
57 sudo make -j$(nproc) check &&
58 popd
59 after_success:
60 uidgid="$(id -nu):$(id -ng)" &&
61 sudo chown -R ${uidgid} ./ &&
62 cpp-coveralls -b src -e tests -e swtpm --gcov-options '\-lp'
63 - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2 --enable-test-coverage --disable-use-openssl-functions"
64 TARGET="install" NPROC="nproc"
65 dist: bionic
66 script:
67 ./autogen.sh ${CONFIG} &&
68 sudo make -j$(nproc) ${TARGET} &&
69 sudo make -j$(nproc) check &&
70 git clone https://github.com/stefanberger/swtpm.git &&
71 pushd swtpm &&
72 sudo rm -rf /dev/tpm* &&
73 sudo apt -y install devscripts equivs python3-twisted expect
74 libtasn1-dev socat findutils gnutls-dev gnutls-bin tss2
75 python3-setuptools libjson-glib-dev &&
76 ./autogen.sh --with-gnutls --prefix=/usr &&
77 export SWTPM_TEST_EXPENSIVE=1 SWTPM_TEST_IBMTSS2=1 &&
78 sudo make -j$(nproc) check &&
79 popd
80 - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2" "TARGET=check"
81 NPROC="sysctl -n hw.ncpu" CFLAGS="-I/usr/local/opt/openssl/include"
82 LDFLAGS="-L/usr/local/opt/openssl/lib"
83 # 'distcheck' results in duplicate symbol errors
84 os: osx
85 compiler: clang
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette