@trusource/server
Version:
TruSource oracle local test server
36 lines (27 loc) • 670 B
YAML
image: node:8
stages:
- test
- deploy
before_script:
- npm install
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
test:
stage: test
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
script:
- npm run lint
- npm test
publish:
stage: deploy
only:
- master
script:
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- npm config set scope trusource
- npm whoami
- npm publish --access public --verbose