From 348c58a387cf3204de2879252d638d02a9e5dbb4 Mon Sep 17 00:00:00 2001 From: johltn Date: Sat, 31 Oct 2020 20:43:18 +0100 Subject: [PATCH] Uncomment test section --- .travis.yml | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index 92b3b8e9d9..8ae6a09760 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,9 +36,7 @@ script: - pwd - cd src/ifcblenderexport/docs - make html - - cd .. - - cd .. - - cd .. + - cd ../../.. - cd cmake - mkdir build - cd build @@ -57,25 +55,25 @@ script: .. - sudo make -j2 install - # - cd ../../test - # - /usr/bin/python2.7 tests.py + - cd ../../test + - /usr/bin/python2.7 tests.py - # - cd input + - cd input - # - /usr/local/bin/IfcConvert -yv acad2010_walls.ifc acad2010_walls.glb - # # - gltf_validator acad2010_walls.glb + - /usr/local/bin/IfcConvert -yv acad2010_walls.ifc acad2010_walls.glb + # - gltf_validator acad2010_walls.glb - # - /usr/bin/python2.7 -c "from __future__ import print_function; from io import open; import ifcopenshell; f = ifcopenshell.open('encoding.ifc'); assert list(map(ord, f[1][0])) == [39, 97, 39, 32, 49, 109, 179, 32, 8804, 32, 53, 109, 179, 32, 8805, 32, 49, 48, 109, 179]" + - /usr/bin/python2.7 -c "from __future__ import print_function; from io import open; import ifcopenshell; f = ifcopenshell.open('encoding.ifc'); assert list(map(ord, f[1][0])) == [39, 97, 39, 32, 49, 109, 179, 32, 8804, 32, 53, 109, 179, 32, 8805, 32, 49, 48, 109, 179]" - # - | - # (for i in *.ifc; do \ - # echo $i | tee -a log; \ - # timeout 1m /usr/local/bin/IfcConvert -yv "$i" "$i.dae" --validate >> log 2>&1; \ - # echo $i $? >> statuses; \ - # done) || true - # - echo Failed - # - grep -v 0$ statuses - # - grep -v 0$ statuses | wc -l - # - echo Succeeded - # - grep 0$ statuses - # - grep 0$ statuses | wc -l + - | + (for i in *.ifc; do \ + echo $i | tee -a log; \ + timeout 1m /usr/local/bin/IfcConvert -yv "$i" "$i.dae" --validate >> log 2>&1; \ + echo $i $? >> statuses; \ + done) || true + - echo Failed + - grep -v 0$ statuses + - grep -v 0$ statuses | wc -l + - echo Succeeded + - grep 0$ statuses + - grep 0$ statuses | wc -l