]> git.proxmox.com Git - swtpm.git/commitdiff
travis: Move packages to install into addons section
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Sun, 18 Nov 2018 22:54:26 +0000 (17:54 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 19 Nov 2018 02:30:57 +0000 (21:30 -0500)
Move the packages to install into the addons section and
rename the before_install section to before_script section.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
.travis.yml

index 7c823800cd773a7a157ef3d8b6e9e8b26001a0cd..b14c87788ef28a3805cef5cc602f1e4a9c9ef6e0 100644 (file)
@@ -4,20 +4,31 @@ env:
 sudo: required
 language: c
 dist: xenial
-before_install:
-- sudo apt-get -y install pep8
-- pep8 $(find . -type f | grep -E "\.py$")
-- sudo apt-get -y install automake autoconf libtool libssl-dev sed make gawk sed bash
-  dh-exec python-twisted
-- git clone https://github.com/stefanberger/libtpms
-- cd libtpms
-- "./bootstrap.sh && ./configure --with-openssl --prefix=/usr --with-tpm2 && make -j4 &&
-  sudo make install"
-- cd ..
-- sudo apt-get -y install libfuse-dev libglib2.0-dev libgmp-dev expect libtasn1-dev
-  socat findutils tpm-tools gnutls-dev gnutls-bin
-- sudo pip install cpp-coveralls
 addons:
+  apt:
+      packages:
+        - pep8
+        - automake
+        - autoconf
+        - libtool
+        - libssl-dev
+        - sed
+        - make
+        - gawk
+        - sed
+        - bash
+        - dh-exec
+        - python-twisted
+        - libfuse-dev
+        - libglib2.0-dev
+        - libgmp-dev
+        - expect
+        - libtasn1-dev
+        - socat
+        - findutils
+        - tpm-tools
+        - gnutls-dev
+        - gnutls-bin
   coverity_scan:
     project:
       name: swtpm
@@ -26,6 +37,14 @@ addons:
     build_command_prepend: "./autogen.sh --with-openssl; make clean"
     build_command: make -j4
     branch_pattern: coverity_scan
+before_script:
+- pep8 $(find . -type f | grep -E "\.py$")
+- git clone https://github.com/stefanberger/libtpms
+- cd libtpms
+- "./bootstrap.sh && ./configure --with-openssl --prefix=/usr --with-tpm2 && make -j4 &&
+  sudo make install"
+- cd ..
+- sudo pip install cpp-coveralls
 script: "./autogen.sh --with-openssl --prefix=/usr
   && SWTPM_TEST_EXPENSIVE=1 make -j4 distcheck
   && ./configure --with-openssl --prefix=/usr --enable-test-coverage