Skip to content

Commit ed23e89

Browse files
committed
Added travis-ci.org support
1 parent ed6cecb commit ed23e89

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

.travis.build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#! /bin/sh
2+
set -e
3+
4+
ncpus=4
5+
6+
echo "Timestamp" && date
7+
cmake -DOCE_INCLUDE_PATH=/usr/include/oce -DOCE_LIB_PATH=/usr/lib ..
8+
echo ""
9+
echo "Timestamp" && date
10+
echo "Starting build with -j$ncpus ..."
11+
12+
make -j$ncpus
13+
sudo make install
14+
# Run tests
15+
echo "Timestamp" && date
16+
#make test

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
language: cpp
2+
compiler:
3+
- gcc
4+
- clang
5+
before_install:
6+
- sudo apt-get install swig
7+
- sudo add-apt-repository "deb http://ppa.launchpad.net/freecad-maintainers/oce-release/ubuntu precise main" -y
8+
- sudo apt-get update -q
9+
- sudo apt-get install liboce-ocaf-dev oce-draw
10+
before_script:
11+
- mkdir cmake-build
12+
- cd cmake-build
13+
# Depth is necessary, otherwise DRAWEXE exits with this message:
14+
# Tcl Exception: ** Exception ** 0x7fee03adb307 : Aspect_WindowDefinitionError: Xw_Window, couldn't find compatible Visual (RGBA, double-buffered)
15+
script: xvfb-run -s "-screen 0 1024x768x16" ../.travis.build.sh
16+
after_script:
17+
# run unittest suite
18+
- cd ../test
19+
- python run_tests.py
20+
branches:
21+
only:
22+
- master
23+
- /^review/

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Travis-CI Build Status :
2+
[![Build Status](https://travis-ci.org/tpaviot/pythonocc-core.png?branch=master)](https://travis-ci.org/tpaviot/pythonocc-core)
3+
14
pythonocc-core
25
==============
36

0 commit comments

Comments
 (0)