mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Travis: xenial, occt 7.3, run IfcConvert
This commit is contained in:
+17
-39
@@ -1,11 +1,11 @@
|
||||
language: cpp
|
||||
compiler: gcc
|
||||
os: linux
|
||||
dist: trusty
|
||||
dist: xenial
|
||||
sudo: required
|
||||
|
||||
|
||||
before_install:
|
||||
- "sudo add-apt-repository -y ppa:freecad-community/ppa"
|
||||
- sudo apt-get update -qq
|
||||
|
||||
|
||||
@@ -15,56 +15,34 @@ install:
|
||||
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
|
||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
|
||||
|
||||
- sudo apt-get install -y libboost1.55-dev
|
||||
- sudo apt-get install -y libboost-regex1.55-dev
|
||||
- sudo apt-get install -y libboost-system1.55-dev
|
||||
- sudo apt-get install -y libboost-thread1.55-dev
|
||||
- sudo apt-get install -y libboost-program-options1.55-dev
|
||||
- sudo apt-get install -y cmake
|
||||
- sudo apt-get install -y libicu-dev
|
||||
- sudo apt-get install -y python-all-dev
|
||||
- sudo apt-get install -y swig
|
||||
- sudo apt-get install -y liboce-foundation-dev
|
||||
- sudo apt-get install -y liboce-modeling-dev
|
||||
- sudo apt-get install -y liboce-ocaf-dev
|
||||
- sudo apt-get install -y liboce-visualization-dev
|
||||
- sudo apt-get install -y liboce-ocaf-lite-dev
|
||||
- sudo apt-get install -y libxml2-dev zlib1g liblzma5
|
||||
- sudo apt-get install -y libpcre3-dev
|
||||
- |
|
||||
sudo apt-get install -y \
|
||||
libocct-data-exchange-dev libocct-foundation-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev \
|
||||
libboost-system-dev libboost-program-options-dev libboost-regex-dev libboost-thread-dev libboost-date-time-dev libboost-iostreams-dev libboost-filesystem-dev \
|
||||
cmake libicu-dev python2.7 libpython2.7-dev swig zlib1g liblzma5 opencollada-dev
|
||||
|
||||
|
||||
script:
|
||||
- pwd
|
||||
- cd ..
|
||||
- git clone https://github.com/KhronosGroup/OpenCOLLADA.git
|
||||
- cd OpenCOLLADA
|
||||
- git checkout 064a60b65c2c31b94f013820856bc84fb1937cc6
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake ..
|
||||
- sudo make -j2 install
|
||||
- cd ..
|
||||
- cd ..
|
||||
- pwd
|
||||
- cd IfcOpenShell
|
||||
- pwd
|
||||
- cd cmake
|
||||
- mkdir build
|
||||
- cd build
|
||||
- |
|
||||
cmake \
|
||||
-DCOLLADA_SUPPORT=True \
|
||||
-DOPENCOLLADA_INCLUDE_DIR=/usr/local/include/opencollada \
|
||||
-DOPENCOLLADA_LIBRARY_DIR=/usr/local/lib/opencollada \
|
||||
-DPCRE_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu \
|
||||
-DBUILD_IFCPYTHON=True \
|
||||
-DUNICODE_SUPPORT=True \
|
||||
-DOCC_INCLUDE_DIR=/usr/include/occt \
|
||||
-DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu \
|
||||
-DPYTHON_LIBRARY=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so \
|
||||
-DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
|
||||
-DPYTHON_EXECUTABLE=/usr/bin/python2.7 \
|
||||
-DLIBXML2_INCLUDE_DIR=/usr/include/libxml2 \
|
||||
-DLIBXML2_LIBRARIES="/usr/lib/x86_64-linux-gnu/libxml2.a;/lib/x86_64-linux-gnu/libz.so.1;/lib/x86_64-linux-gnu/liblzma.so.5" \
|
||||
..
|
||||
- sudo make install
|
||||
|
||||
- cd ../../test
|
||||
- /usr/bin/python2.7 tests.py
|
||||
|
||||
- cd input
|
||||
- |
|
||||
for i in *.ifc; do \
|
||||
echo $i
|
||||
/usr/local/bin/IfcConvert -yv "$i" "$i.dae" --validate
|
||||
done
|
||||
Reference in New Issue
Block a user