forked from AcademySoftwareFoundation/OpenColorIO
-
Notifications
You must be signed in to change notification settings - Fork 4
/
buildspec.yml
59 lines (55 loc) · 1.54 KB
/
buildspec.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
# SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.
#
# AWS CodeBuild build specification
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
version: 0.2
# ---------------------------------------------------------------------------
# CodeBuild project container
# ---------------------------------------------------------------------------
# DockerHub: https://hub.docker.com/u/aswf
# Source: https://github.com/AcademySoftwareFoundation/aswf-docker
# Image: aswf/ci-ocio:2020
# OS: Linux CentOS 7
# VFX Ref: CY2020
# Compiler: GCC 6.3.1
env:
variables:
CXX: g++
CC: gcc
exported-variables:
- CXX
- CC
phases:
pre_build:
commands:
# Checkout
- git clone https://github.com/$GITHUB_REPOSITORY OpenColorIO
- cd OpenColorIO
- git checkout $GITHUB_SHA
# Create build directories
- mkdir _install _build
- cd _build
build:
commands:
# Configure
- |
cmake ../. \
-DCMAKE_INSTALL_PREFIX=../_install \
-DOCIO_USE_HEADLESS=ON \
-DOCIO_BUILD_APPS=ON \
-DOCIO_BUILD_DOCS=OFF \
-DOCIO_BUILD_TESTS=ON \
-DOCIO_BUILD_GPU_TESTS=ON \
-DOCIO_BUILD_PYTHON=OFF \
-DOCIO_INSTALL_EXT_PACKAGES=ALL \
-DOCIO_WARNING_AS_ERROR=ON
# Build
- |
cmake --build . \
--target install \
-- -j$(nproc)
post_build:
commands:
# Test
- ctest -V