Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |