Commit Graph

21 Commits

Author SHA1 Message Date
Stefan Berger
779e859211 Travis: Use swtpm's stable-0.9 branch for testing
Since swtpm now depends on libtpms >= 0.10 use swtpm's stable-0.9
branch for testing.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2024-07-22 12:44:53 -04:00
Stefan Berger
07c03ca501 Travis: Install libjson-glib-dev and drop a few python dependencies
Since swtpm_setup has been rewritten in 'C' now we can drop a few
python dependencies but need libjson-glib-dev as a new dependency
for testing with swtpm's master branch.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2021-06-01 06:39:46 -04:00
William Roberts
901c9a76c7 travis: drop Trusty (14.04) for Xenial (16.04)
PKG_INSTALLDIR is missing from 14.04, so switch to 16.04 to pick it up.

Signed-off-by: William Roberts <william.c.roberts@intel.com>
2021-02-09 13:33:15 -05:00
Stefan Berger
c3e6bb971d Travis: Add python3 dependencies for swtpm test
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2020-08-28 20:33:09 -04:00
Stefan Berger
12a35bb511 Travis: Run additional IBM TSS2 related test; use Bionic
Run some additional IBM TSS2 related tests for better code
coverage. We need to switch to Bionic to get the tss2 package.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2020-04-09 20:56:15 -04:00
Stefan Berger
a74bcc1649 Travis: Use -O3 in one of the builds
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2020-01-30 08:39:03 -05:00
Stefan Berger
4e1cd261ef build-sys: Add support for --disable-use-openssl-functions
OpenSSL's crypto library does not support all crypto functionality
we need in all versions. Elliptic curve support via EVP seems to
have been added much later than for example symmetric crypto support.
So, we move the USE_OPENSSL_FUNCTIONS out of Implementation.h
into configure.ac and let the build system detect what functionality
is available in the crypto library. In this patch we now also rename
USE_OPENSSL_FUNCTIONS to USE_OPENSSL_FUNCTIONS_SYMMETRIC to indicate
that we can use the symmetric crypto functions of the crypto lib.

Using the OpenSSL crypto support is enabled by default, so one has
to use --disable-use-openssl-functions, which we do for Travis now.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-05-30 16:25:15 -04:00
Stefan Berger
dfe7816ae3 Travis: Add a Travis build for the case 'USE_OPENSSL_FUNCTIONS NO'
Maintain the build for the case of USE_OPENSSL_FUNCTIONS set to NO
where we build the original TPM 2 code.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-05-30 12:23:05 -04:00
Stefan Berger
cbc70e79d5 Travis: If building coverity_scan branch, build only job number 1
Only build one job when building the coverity branch.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-05-30 10:11:33 -04:00
Stefan Berger
96e8ed4aa3 Travis: Display test failures
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-05-07 16:01:48 -04:00
Stefan Berger
65769f9d3c travis: Run cpp-coveralls without sudo
Change file and directory ownerships so that we can run cpp-coveralls
without sudo.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-04-03 11:14:30 -04:00
Stefan Berger
a700edec87 travis: Use cpp-coveralls with the -b option for proper path creation
Add the option -b ./src for proper path creation. Exclude the test
dir to avoid malformed path creation. Also exclude the swtpm dir
since nothing interesting is to be found there.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-03-29 16:04:15 -04:00
Stefan Berger
e6da4834cd travis: Add libseccomp-dev as package to install for swtpm
To build recent swtpm we also need libseccomp-dev now.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-03-18 21:14:49 -04:00
Stefan Berger
1762b62f8c travis: Add OS X target
Also test-compile on OS X. The 'distcheck' target cannot be used
since it results in deplicate symbol errors while linking (no idea
why it happens only with distcheck).

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-01-09 11:51:41 -05:00
Stefan Berger
baf9b1ee92 travis: Build libtpms for coverage and test with swtpm
Build libtpms with code coverage enabled and run the swtpm test
suite on it.

Unfortunately cpp-coveralls has a problem creating correct file paths when
collecting the results so that the coverage results are not correctly sub-
mitted to coveralls.io. The issue may stem from the fact that the
Makefile.am in src/ contains rules for source files in subdirs src/tmp12/
and src/tpm2/ etc. I hope that this issue can be fixed at some point.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-01-09 11:51:41 -05:00
Stefan Berger
dc6e504522 travis: Parameterize script and invoke from matrix
Add a matrix: part so we can test on multiple systems concurrently and
make the script use environment variables.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-01-09 11:51:41 -05:00
Stefan Berger
de0d14a6e5 travis: Move package installation under addons
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2019-01-09 11:51:41 -05:00
Stefan Berger
5c2a46c9f8 travis: use 'distcheck' rather than 'check'
To test the creation of the tar and out-of-tree builds all the time, do
'distcheck' rather than a simple 'check'.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2018-09-01 11:19:13 -04:00
Stefan Berger
88dfea52cf tpm2: Build libtpms with TPM 2 code now
Now that patches for writing the state into files and extensions
to their headers have all been applied we can build the TPM 2
code into the library.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2018-06-15 18:07:48 -04:00
Stefan Berger
569408f12a build: integrate Travis CI automation with Coverty Scan
Integrate the Travis CI automated build & test with Coverity Scan.
Automatically submit a Coverity Scan if we push to the coverity_scan
branch.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2017-09-22 11:27:35 -04:00
Stefan Berger
53e75ba814 ci: add .travis.yml
Add Travis build script.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2017-07-31 12:40:43 -04:00