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
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Build Servo on Travis

  • Loading branch information
frewsxcv committed Oct 8, 2015
commit ad399bd76fafbf38cd4ede5ede9d2126f66079a8
@@ -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
@@ -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
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.