Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from ideal-postcodes/NOV_2017_ONSPD
Nov 2017 ONSPD Update
- Loading branch information
Showing
27 changed files
with
1,096 additions
and
326 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 |
---|---|---|
@@ -1,22 +1,67 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
node6: | ||
docker: | ||
- image: circleci/node:6.10 | ||
environment: | ||
- PGHOST=localhost | ||
- PGUSER=postgres | ||
- image: mdillon/postgis | ||
- image: circleci/postgres:9.6-alpine-postgis | ||
|
||
steps: | ||
- run: | ||
name: Wait for db | ||
command: dockerize -wait tcp://localhost:5432 -timeout 2m | ||
- checkout | ||
- run: sudo apt-get update | ||
- run: sudo apt install postgresql-client | ||
- run: POSTGRES_USER=postgres npm run setup_test_db | ||
- restore_cache: | ||
keys: | ||
- npm-deps-{{ checksum "package.json" }} | ||
- run: npm install | ||
- save_cache: | ||
key: npm-deps-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules/ | ||
- run: npm run test-ci | ||
- run: npm run coverage | ||
|
||
|
||
node8: | ||
docker: | ||
- image: circleci/node:8.8 | ||
environment: | ||
- PGHOST=localhost | ||
- PGUSER=postgres | ||
- image: circleci/postgres:9.6-alpine-postgis | ||
|
||
steps: | ||
- run: | ||
name: Wait for db | ||
command: dockerize -wait tcp://localhost:5432 -timeout 1m | ||
command: dockerize -wait tcp://localhost:5432 -timeout 2m | ||
- checkout | ||
- run: sudo apt-get update | ||
- run: sudo apt install postgresql-client | ||
- run: POSTGRES_USER=postgres npm run setup_test_db | ||
- restore_cache: | ||
keys: | ||
- npm-deps-{{ checksum "package.json" }} | ||
- run: npm install | ||
- run: npm test | ||
- save_cache: | ||
key: npm-deps-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules/ | ||
- run: npm run test-ci | ||
- run: npm run coverage | ||
|
||
workflows: | ||
version: 2 | ||
node6_and_node8: | ||
jobs: | ||
- node6 | ||
- node8 | ||
|
||
|
||
|
||
|
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ config/deploy/ | |
process.json | ||
.nyc_output/ | ||
log/ | ||
npm-debug.log |
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
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
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
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
Oops, something went wrong.