Permalink
Browse files

Add Travis stuff.

  • Loading branch information...
connormanning committed Feb 20, 2017
1 parent 17156c9 commit 34d1b71fcd9ffe553413a6916e56dfdfec670260
Showing with 21 additions and 2 deletions.
  1. +7 −0 .travis.yml
  2. +1 −1 package.json
  3. +9 −0 scripts/ci/run.sh
  4. +2 −1 scripts/docker/Dockerfile
  5. +2 −0 scripts/generate-test-data.sh
View
@@ -0,0 +1,7 @@
sudo: required
services: docker
notifications:
email: false
script:
./scripts/ci/run.sh
View
@@ -12,7 +12,7 @@
"start": "./src/forever.js",
"debug": "NODE_ENV=debug node-gyp build --debug && ./src/app.js --debug",
"generate-test-data": "./scripts/generate-test-data.sh",
"test": "mocha ./test --recursive --slow 5000 --timeout 5000"
"test": "mocha ./test --recursive --slow 60000 --timeout 60000"
},
"bin": {
"greyhound": "./src/forever.js",
View
@@ -0,0 +1,9 @@
docker run -t \
-v $TRAVIS_BUILD_DIR:/opt/greyhound \
--entrypoint /bin/bash \
connormanning/greyhound -c " \
NODE_ENV=debug cd /opt/greyhound && npm run generate-test-data && \
npm install && node-gyp configure && \
node-gyp build --debug && \
(NODE_ENV=debug nohup ./src/app.js --debug&) && sleep 10 && npm test"
@@ -7,7 +7,8 @@ ENV CXX g++
RUN apt-get update && apt-get install -y wget && \
(wget -qO- https://deb.nodesource.com/setup_4.x | bash -) && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
npm install -g node-gyp mocha
ADD https://api.github.com/repos/hobu/greyhound/commits /tmp/bust-cache
RUN git clone https://github.com/hobu/greyhound.git /var/greyhound && \
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
mkdir -p $DIR/../data
cd $DIR/../data
mkdir -p tmp
# Normally we'd glob here, but that's not possible with the HTTP interface.
TESTING_SHALLOW=true entwine build \

0 comments on commit 34d1b71

Please sign in to comment.