Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Servo on Travis #7915

Merged
merged 1 commit into from Oct 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 19 additions & 3 deletions .travis.yml
@@ -1,9 +1,25 @@
language: python
sudo: false
sudo: 9000
services:
- docker

before_install:
- if [ "$DOCKER" = "1" ]; then docker build -t servo etc/ci/; fi

script:
- ./mach test-tidy
- if [ "$DOCKER" = "0" ]; then sh -c "$CMD"; fi
- if [ "$DOCKER" = "1" ]; then docker run -tv `pwd`:/build servo sh -c "$CMD"; fi

matrix:
fast_finish: true
include:
- env:
- CMD="./mach test-tidy"
- DOCKER=0
- env:
- CMD="./mach build -d --verbose"
- DOCKER=1

branches:
only:
- master
- master
33 changes: 33 additions & 0 deletions etc/ci/Dockerfile
@@ -0,0 +1,33 @@
FROM ubuntu:vivid

# Required by mozjs to build
ENV SHELL /bin/sh

# Enable 'universe' since it is not enabled by default
RUN echo "deb http://archive.ubuntu.com/ubuntu vivid main universe" > /etc/apt/sources.list
RUN echo "deb http://archive.ubuntu.com/ubuntu vivid-updates main universe" >> /etc/apt/sources.list

# Install dependencies
RUN apt-get -y update
RUN apt-get install -y \
cmake \
curl \
freeglut3-dev \
g++ \
git \
gperf \
libbz2-dev \
libfreetype6-dev \
libgl1-mesa-dri \
libglib2.0-dev \
libglu1-mesa-dev \
libosmesa6-dev \
libssl-dev \
libxmu-dev \
libxmu6 \
python-virtualenv \
xorg-dev

# Servo will be built in /build
RUN mkdir /build
WORKDIR /build