@wmfs/tymly-pg-plugin
Version:
Replace Tymly's out-the-box memory storage with PostgreSQL
56 lines • 1.25 kB
YAML
version: 2
jobs:
test:
docker:
# use node:lts
- image: circleci/node:lts
environment:
TZ: "Europe/London"
PG_CONNECTION_STRING: postgres://postgres:postgres@localhost:5432/circle_test
# use postgres 9.6
- image: circleci/postgres:9.6-alpine-postgis
environment:
POSTGRES_USER: postgres
POSTGRES_DB: circle_test
working_directory: ~/repo
steps:
- checkout
- run:
name: install
command: npm install
- run:
name: test
command: npm test
- run:
name: codecov
command: npm run coverage
release:
docker:
# use node:lts
- image: circleci/node:lts
environment:
TZ: "Europe/London"
working_directory: ~/repo
steps:
- checkout
- run:
name: install
command: npm install
- run:
name: release
command: |
chmod +x version_plugin
npx semantic-release
workflows:
version: 2
test_and_release:
jobs:
- test:
context: tymly_global
- release:
context: tymly_global
requires:
- test
filters:
branches:
only: master