Commit f43b3e92 authored by Amit Bakshi's avatar Amit Bakshi

Add Travis-CI support

The Dockerfile is to simulate the environment that
Travis-CI uses.

To test locally, first create the build container:

    $ docker build -t pbrt:latest .

Then run the image (it executes make by default):

    $ docker run -ti --rm pbrt:latest

To get a copy of the binaries, mount a local directory
into the docker container:

    $ mkdir build
    $ docker run -ti --rm -v $PWD/build:/app/build pbrt:latest

The output will be in $PWD/build.
parent f71d65f3
language: cpp
compiler: gcc
sudo: required
install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- sudo apt-get install -yq build-essential gcc-4.8 g++-4.8 cmake make bison flex libpthread-stubs0-dev
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
- echo 2 | sudo update-alternatives --config gcc
after_install:
- g++ --version
script:
- cmake -G 'Unix Makefiles'
- make -j2
- ./pbrt_test
FROM ubuntu:12.04
MAINTAINER Amit Bakshi <ambakshi@gmail.com>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -yq
RUN apt-get install -yq python-software-properties
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get update -yq
RUN apt-get install -yq build-essential gcc-4.8 g++-4.8 cmake make bison flex libpthread-stubs0-dev
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
RUN echo 2 | update-alternatives --config gcc
ADD . /app
WORKDIR /app/build
RUN cmake -G 'Unix Makefiles' ..
CMD ["/usr/bin/make","-j2"]
pbrt, Version 3
===============
[![Build Status](https://travis-ci.org/ambakshi/pbrt-v3.svg?branch=master)](https://travis-ci.org/ambakshi/pbrt-v3)
This repository holds the current snapshot of the source code to the new
version of pbrt that will be described in the forthcoming third edition of
*Physically Based Rendering: From Theory to Implementation*. As before,
......@@ -65,7 +67,7 @@ come once everything is finalized.)
run ‘main.py’ to launch the visual layer editor.
* Improved microfacet models: specular transmission through microfacets,
and Heitz's improved importance sampling.
* No external dependencies: thanks to
* No external dependencies: thanks to
[Syoyo Fujita's tinyexr](https://github.com/syoyo/tinyexr),
[Sean Barrett's stb_image_write.h](https://github.com/nothings/stb),
[Diego Nehab's rply](http://www.impa.br/~diego/software/rply),
......@@ -86,7 +88,7 @@ page](http://www.cmake.org/download/).
* For command-line builds on Linux and OS X, once you have cmake installed,
create a new directory for the build, change to that directory, and run
`cmake <path to pbrt-v3>`. A Makefile will be created in that
`cmake <path to pbrt-v3>`. A Makefile will be created in that
current directory. Run `make -j4`, and pbrt and some additional tools will
be built.
* To make an XCode project file on OS X, run `cmake -G Xcode <path to
......@@ -138,7 +140,7 @@ copy of the book to folks who make significant contributions.
* Finding bugs: though we've tried to test thoroughly,
there are certainly bugs in the code, and we'd like to find them before
they are published in the book! The
they are published in the book! The
[pbrt-v3 issue tracker](https://github.com/mmp/pbrt-v3/issues) is the best
place to report anything suspicious you find. Useful things to do include:
* Running various scenes through the renderer and checking the results.
......@@ -152,7 +154,7 @@ targets don't currently work.
* Images and figures: we'd like to refresh many of the figures in the book,
but probably won't have time to get to all of them. If you can spend some
time on making a nice scene or two that we can use for figures, that'd be a
huge help. Specific areas of interest include:
huge help. Specific areas of interest include:
* Subsurface scattering: a human face, biological objects, ...
* Showing off complex light transport using bidirectional path
tracing.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment