Skip to content

Commit

Permalink
Use buildkite and docker for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrandon committed Dec 4, 2017
1 parent fa5928a commit 0db6723
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .buildkite/coverTests
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
sh /etc/init.d/xvfb

npm run cover

cat coverage/lcov.info | coveralls
17 changes: 17 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
steps:
- name: ":docker: :package:"
plugins:
docker-compose#v1.5.2:
build: deck-gl
image-repository: 296822479253.dkr.ecr.us-east-2.amazonaws.com/fusionjs
- wait
- name: ":eslint:"
command: "npm run lint"
plugins:
docker-compose#v1.5.2:
run: deck-gl
- name: ":node:"
command: ".buildkite/coverTests"
plugins:
docker-compose#v1.5.2:
run: deck-gl
5 changes: 5 additions & 0 deletions .buildkite/xvfb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
XVFB=/usr/bin/Xvfb
XVFBARGS="$DISPLAY -screen 0 1024x768x24 -ac +extension GLX +render -noreset"
PIDFILE=/var/run/xvfb.pid

start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:8.9.0

WORKDIR /deck-gl
ENV PATH /deck-gl/node_modules/.bin:$PATH

# Install XVFB dependencies into container
ENV DISPLAY :99
ADD .buildkite/xvfb /etc/init.d/xvfb

RUN apt-get update
RUN apt-get -y install xvfb && chmod a+x /etc/init.d/xvfb

COPY package.json yarn.lock /deck-gl/

RUN yarn
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<a href="https://travis-ci.org/uber/deck.gl">
<img src="https://img.shields.io/travis/uber/deck.gl/master.svg?style=flat-square" alt="build" />
</a>
[![Build status](https://badge.buildkite.com/6fb0e59c3c390c392ce334eceb981748290a7d4a1ea515f2ce.svg?branch=master)](https://buildkite.com/uberopensource/deck-gl)
<a href="https://npmjs.org/package/deck.gl">
<img src="https://img.shields.io/npm/dm/deck.gl.svg?style=flat-square" alt="downloads" />
</a>
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '2'
services:
deck-gl:
build: .
volumes:
- .:/deck-gl
- /deck-gl/node_modules/

0 comments on commit 0db6723

Please sign in to comment.