]> git.proxmox.com Git - swtpm.git/commitdiff
travis: Use $(nproc) and reformat the yaml a bit
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Sun, 18 Nov 2018 23:41:09 +0000 (18:41 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 19 Nov 2018 02:30:57 +0000 (21:30 -0500)
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
.travis.yml

index d306162e8d4ca3ca01e61ed97176c8f1e79a6993..d67403c156e899b2941dff50c7daf28a33bb6fc4 100644 (file)
@@ -38,16 +38,16 @@ addons:
     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
-- ./autogen.sh ${CONFIG}
+  - 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 -j$(nproc) &&
+    sudo make install"
+  - cd ..
+  - sudo pip install cpp-coveralls
+  - ./autogen.sh ${CONFIG}
 script:
-  ${SUDO} make clean && export SWTPM_TEST_EXPENSIVE=1 && ${SUDO} make -j4 ${CHECK}
+  - ${SUDO} make clean && export SWTPM_TEST_EXPENSIVE=1 && ${SUDO} make -j$(nproc) ${CHECK}
 matrix:
   include:
     - env: CONFIG="--with-openssl --prefix=/usr"