Skip to content

Commit

Permalink
Switch to CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesboeufs committed Dec 16, 2015
1 parent 0c34795 commit 6fe14b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# APICarto

[![Build Status](https://travis-ci.org/sgmap/apicarto.svg?branch=master)](https://travis-ci.org/sgmap/apicarto)
[![Circle CI](https://circleci.com/gh/sgmap/apicarto/tree/master.svg?style=shield)](https://circleci.com/gh/sgmap/apicarto/tree/master)
[![Coverage Status](https://coveralls.io/repos/sgmap/apicarto/badge.svg?branch=coverage&service=github)](https://coveralls.io/github/sgmap/apicarto?branch=coverage)
[![Join the chat at https://gitter.im/sgmap/apicarto](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sgmap/apicarto?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Expand Down
25 changes: 25 additions & 0 deletions circle.yml
@@ -0,0 +1,25 @@
machine:
node:
version: 4.2

environment:
GEOPORTAIL_REFERER: https://apicarto.sgmap.fr
# GEOPORTAIL_KEY is defined in the CircleCI web UI
# REF_DATA_DIR is defined in the CircleCI web UI

dependencies:
pre:
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
- sudo apt-get update
- sudo apt-get install -y gdal-bin
post:
- psql -c "CREATE DATABASE apicarto;" -U postgres
- psql -d apicarto -c "CREATE EXTENSION postgis;" -U postgres
- npm config set apicarto:pgUser postgres
- npm config list
- npm run import
- npm install coveralls

test:
post:
- cat ./coverage/lcov.info | COVERALLS_REPO_TOKEN=eaMJkx2qgoBFZXef0sKFnEuRF7QS7FREP coveralls

0 comments on commit 6fe14b0

Please sign in to comment.