UNPKG

@amberjs/log

Version:

A Simplified Multi-transport and Structured Logging Library for Amber.js

69 lines (62 loc) 1.44 kB
image: node:carbon-alpine stages: - dependencies - reports - analyze Install Dependencies: stage: dependencies script: - npm install artifacts: expire_in: '300' paths: - /thebrewery/amberjs/log/node_modules/ only: - master Code Linting: stage: reports dependencies: - Install Dependencies script: - npm run lint artifacts: expire_in: '300' paths: - /thebrewery/amberjs/log/reports/ only: - master Unit Testing: stage: reports dependencies: - Install Dependencies script: - cd /thebrewery/amberjs/log && npm run test artifacts: expire_in: '300' paths: - /thebrewery/amberjs/log/coverage/ only: - master Code Quality Analysis: image: agaphetos/sonar-scanner:3.3.0-alpine stage: analyze dependencies: - Code Linting - Unit Testing script: - hwclock -s - export PROJECT_VERSION=$(node -p "require('/thebrewery/amberjs/log/package.json').version") - sonar-scanner -X -Dsonar.host.url=$SONARQUBE_URL -Dsonar.projectBaseDir=/thebrewery/amberjs/log -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.projectVersion=$PROJECT_VERSION only: - master # publish: # stage: publish # when: manual # script: # - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc # - npm publish # environment: # name: npmjs # url: https://www.npmjs.com/package/brewery-log # only: # - master