Skip to content

Instantly share code, notes, and snippets.

@yoshuawuyts
Forked from penghou620/CircleCI submodule example
Last active October 29, 2018 13:47
Show Gist options
  • Save yoshuawuyts/56b51cc9bc2460bc82f3 to your computer and use it in GitHub Desktop.
Save yoshuawuyts/56b51cc9bc2460bc82f3 to your computer and use it in GitHub Desktop.
machine:
node:
version: 0.10.35
dependencies:
pre:
- sudo apt-get install -y libpoppler-glib-dev libpoppler-glib8 libcairo2-dev libcairo2
- sudo apt-get install -y libpq-dev
database:
override:
- psql -c 'create database test;' -U postgres
- psql -U postgres -c "create extension postgis"
checkout:
post:
- git submodule init
- git submodule update
test:
pre:
- cd server; npm install
- cd server; NODE_ENV=test node ./bin/www:
background: true
- sleep 10
override:
- npm test
@ec-wagner
Copy link

this is for CircleCI v. 1.0
will not work with v 2.0 and above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment