This repository has been archived by the owner on May 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
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
1 parent
d7dcef4
commit 30ac16c
Showing
7 changed files
with
88 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
export DISPLAY=:99.0 | ||
/etc/init.d/xvfb start | ||
|
||
./node_modules/.bin/unitest --browser=dist-tests/browser.js |
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,2 @@ | ||
#!/usr/bin/env bash | ||
./node_modules/.bin/unitest --node=dist-tests/node.js |
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,22 @@ | ||
steps: | ||
- name: ":docker: :package:" | ||
plugins: | ||
docker-compose#v1.5.2: | ||
build: fusion-core | ||
image-repository: 296822479253.dkr.ecr.us-east-2.amazonaws.com/fusionjs | ||
- wait | ||
- name: ":eslint:" | ||
command: "yarn lint" | ||
plugins: | ||
docker-compose#v1.5.2: | ||
run: fusion-core | ||
- name: ":chrome: :white_check_mark:" | ||
command: ".buildkite/browserTests" | ||
plugins: | ||
docker-compose#v1.5.2: | ||
run: fusion-core | ||
- name: ":node: :white_check_mark:" | ||
command: ".buildkite/nodeTests" | ||
plugins: | ||
docker-compose#v1.5.2: | ||
run: fusion-core |
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,8 @@ | ||
#!/bin/bash | ||
export DISPLAY=:99 | ||
/etc/init.d/xvfb start | ||
sleep 1 | ||
$@ | ||
exit_value=$? | ||
/etc/init.d/xvfb stop | ||
exit $exit_value |
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,23 @@ | ||
XVFB=/usr/bin/Xvfb | ||
XVFBARGS="$DISPLAY -ac -screen 0 1024x768x16 +extension RANDR" | ||
PIDFILE=/var/xvfb_${DISPLAY:1}.pid | ||
case "$1" in | ||
start) | ||
echo -n "Starting virtual X frame buffer: Xvfb" | ||
/sbin/start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS | ||
echo "." | ||
;; | ||
stop) | ||
echo -n "Stopping virtual X frame buffer: Xvfb" | ||
/sbin/start-stop-daemon --stop --quiet --pidfile $PIDFILE | ||
echo "." | ||
;; | ||
restart) | ||
$0 stop | ||
$0 start | ||
;; | ||
*) | ||
echo "Usage: /etc/init.d/xvfb {start|stop|restart}" | ||
exit 1 | ||
esac | ||
exit 0 |
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,19 @@ | ||
FROM node:8.9.0 | ||
|
||
WORKDIR /fusion-core | ||
|
||
# Install electron dependencies. | ||
ENV DISPLAY :99 | ||
ADD .buildkite/xvfb_init /etc/init.d/xvfb | ||
ADD .buildkite/xvfb_daemon_run /usr/bin/xvfb-daemon-run | ||
|
||
RUN dpkg --add-architecture i386 | ||
RUN apt-get update | ||
RUN apt-get -y install libgtk2.0-dev libx11-xcb-dev libgtkextra-dev libgconf2-dev libnss3 libasound2 libxtst-dev libxss1 xvfb && \ | ||
chmod a+x /etc/init.d/xvfb /usr/bin/xvfb-daemon-run | ||
|
||
COPY . . | ||
|
||
RUN yarn | ||
|
||
RUN yarn build-test |
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,9 @@ | ||
version: '2' | ||
services: | ||
fusion-core: | ||
build: . | ||
volumes: | ||
- .:/fusion-core | ||
- /fusion-core/node_modules/ | ||
- /fusion-core/dist/ | ||
- /fusion-core/dist-tests/ |