Files
IfcOpenShell/.travis.yml
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
2.1 KiB
YAML
Raw Normal View History

2016-08-09 14:03:26 +02:00
language: cpp
compiler: gcc
2021-03-15 19:28:03 +02:00
cache: ccache
2016-08-09 14:03:26 +02:00
os: linux
dist: focal
addons:
apt:
update: true
packages:
- libboost-date-time-dev
- libboost-filesystem-dev
- libboost-iostreams-dev
- libboost-program-options-dev
- libboost-regex-dev
- libboost-system-dev
- libboost-thread-dev
- libocct-data-exchange-dev
- libocct-foundation-dev
- libocct-modeling-algorithms-dev
- libocct-modeling-data-dev
- libxml2-dev
- nlohmann-json3-dev
- opencollada-dev
- python3-all-dev
2021-07-10 17:17:47 +02:00
- python3-pip
- swig
2021-07-10 17:06:47 +02:00
- libhdf5-dev
2016-08-09 14:03:26 +02:00
2021-03-15 19:28:03 +02:00
before_script:
- if [ $TRAVIS_OS_NAME == "linux" ]; then ccache -z; fi
2021-07-10 17:17:47 +02:00
install:
# for IDS
- python3 -m pip install xmlschema
2021-03-15 19:28:03 +02:00
2016-08-09 14:03:26 +02:00
script:
- pwd
2021-03-15 20:32:57 +02:00
- mkdir build && cd build
2018-09-02 09:35:09 +02:00
- |
cmake \
2021-03-15 19:28:03 +02:00
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
2019-05-08 13:31:51 +02:00
-DOCC_INCLUDE_DIR=/usr/include/opencascade \
2018-09-02 09:35:09 +02:00
-DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu \
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 \
-DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 \
-DPYTHON_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so \
2021-07-10 21:10:03 +02:00
"-DSCHEMA_VERSIONS=2x3;4" \
2019-05-08 13:16:29 +02:00
-DGLTF_SUPPORT=On \
2021-03-15 21:25:00 +02:00
-DJSON_INCLUDE_DIR=/usr/include \
2021-07-10 17:06:47 +02:00
-DHDF5_INCLUDE_DIR=/usr/include/hdf5/serial \
2021-03-15 20:32:57 +02:00
../cmake
# TODO: Drop sudo
- sudo make -j $(nproc) install
2021-07-10 16:08:23 +02:00
2021-03-15 20:32:57 +02:00
- cd ../test
- /usr/bin/python tests.py
2021-07-10 16:05:32 +02:00
- /usr/bin/python ../src/ifcopenshell-python/ifcopenshell/test_ids.py
2018-12-12 14:07:13 +01:00
- cd input
2021-07-10 16:08:23 +02:00
2019-05-08 13:31:51 +02:00
- /usr/local/bin/IfcConvert -yv acad2010_walls.ifc acad2010_walls.glb
2021-07-10 16:08:23 +02:00
- /usr/bin/python -c "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]"
2021-07-10 16:08:23 +02:00
2018-12-12 14:07:13 +01:00
- |
(for i in *.ifc; do \
2018-12-12 15:57:38 +01:00
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
2019-05-08 13:16:29 +02:00
- grep 0$ statuses | wc -l
2021-03-15 19:28:03 +02:00
after_script:
- if [ $TRAVIS_OS_NAME == "linux" ]; then ccache -s; fi