forked from AcademySoftwareFoundation/OpenColorIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (69 loc) · 2.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# travis-ci.org build file
# https://docs.travis-ci.com/user/languages/cpp
matrix:
include:
- os: linux
language: cpp
compiler: clang
- os: linux
language: cpp
compiler: gcc
- os: linux
language: cpp
compiler: gcc
env:
- OPTIONS_BUILD="-DOCIO_USE_SSE=OFF"
- os: osx
language: cpp
compiler: clang
- os: osx
language: cpp
compiler: gcc
- os: osx
language: cpp
compiler: clang
osx_image: xcode9.1
env:
global:
- OPTIONS="-DCMAKE_BUILD_TYPE=Release -DOCIO_BUILD_TESTS=ON -DOCIO_BUILD_GPU_TESTS=OFF -DOCIO_BUILD_DOCS=ON -DOCIO_WARNING_AS_ERROR=ON"
# Install missing packages
before_install:
# Linux ones
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update -qq;
sudo apt-get install -y -qq freeglut3-dev libglew-dev libxmu-dev libxi-dev;
mkdir ${TRAVIS_BUILD_DIR}/_cmake;
wget https://cmake.org/files/v3.12/cmake-3.12.2-Linux-x86_64.sh;
sh cmake-3.12.2-Linux-x86_64.sh -- --skip-license --prefix=${TRAVIS_BUILD_DIR}/_cmake;
export PATH="${TRAVIS_BUILD_DIR}/_cmake/bin:$PATH";
fi
# OSX ones
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install glew;
brew upgrade cmake;
brew upgrade pyenv;
echo 'eval "$(pyenv init -)"' >> .bash_profile;
source .bash_profile;
export PYTHON_CONFIGURE_OPTS="--enable-framework";
pyenv install -v 2.7.15;
pyenv global 2.7.15;
export OPTIONS="$OPTIONS -DPYTHON_LIBRARY=$(python-config --prefix)/lib/libpython2.7.dylib";
export OPTIONS="$OPTIONS -DPYTHON_INCLUDE_DIR=$(python-config --prefix)/include/python2.7";
export OPTIONS="$OPTIONS -DPYTHON_EXECUTABLE=$(which python2)";
fi
# Run the Build script
script:
- mkdir _build
- cd _build
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS $OPTIONS_BUILD
- cmake --build . --target install
- ctest -V
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
tags: true
local_dir: ./docs/build-html
fqdn: opencolorio.org