Skip to content
Snippets Groups Projects
Commit ac1cb9fb authored by Ulf Seltmann's avatar Ulf Seltmann
Browse files

Merge branch 'add_gitlab_ci' into 'master'

adds gitlab ci

See merge request ubl/bdd_dev/dacap!1
parents 76beedc5 d5e7a388
Branches
Tags
1 merge request!1adds gitlab ci
Pipeline #11 failed with stages
in 2 minutes and 17 seconds
stages:
- build_app
- test_app
- publish_app
- build_image
- publish_image
variables:
npm_config_registry: https://docker.ub.intern.uni-leipzig.de/npm
npm_install:
stage: build_app
image: node:8-alpine
script:
- npm install
- npm run build
cache:
key: "${CI_COMMIT_SHA}"
paths:
- node_modules
- dist
- public
tags:
- docker
npm_ci:
stage: test_app
image: node:8-alpine
script:
- npm run ci
cache:
key: "${CI_COMMIT_SHA}"
paths:
- node_modules
- dist
- public
tags:
- docker
npm_publish:
stage: publish_app
only:
- master
image: node:8-alpine
script:
- echo "//docker.ub.intern.uni-leipzig.de/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- npm publish
cache:
key: "${CI_COMMIT_SHA}"
paths:
- node_modules
- dist
- public
tags:
- docker
docker_build:
stage: build_image
only:
- master
image: docker:latest
services:
- docker:dind
script:
- docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD}
- docker build --no-cache --pull -t ubleipzig/dacap:latest .
- docker tag ubleipzig/dacap:latest ubleipzig/dacap:${CI_PIPELINE_ID}
- docker push ubleipzig/dacap:${CI_PIPELINE_ID}
- docker push ubleipzig/dacap:latest
tags:
- docker
......@@ -2,6 +2,9 @@
*Dynamic And Compressing Api Proxy* is a service which lets you proxy arbitrary API-Endpoints which are by themself to slow to be used in production environments. All cached Responses are held in memory, so be sure to provide enough.
[![pipeline status](https://git.sc.uni-leipzig.de/ubl/bdd_dev/dacap/badges/master/pipeline.svg)](https://git.sc.uni-leipzig.de/ubl/bdd_dev/dacap/commits/master)
[![coverage report](https://git.sc.uni-leipzig.de/ubl/bdd_dev/dacap/badges/master/coverage.svg)](https://git.sc.uni-leipzig.de/ubl/bdd_dev/dacap/commits/master)
## Requirements
* node >= v8.2.1
......
{
"name": "dacap",
"version": "1.0.7",
"version": "1.0.8",
"description": "proxies,compresses and caches api-requests",
"main": "bin/dacap",
"bin": {
......@@ -16,7 +16,7 @@
"inspect-watch": "tsc-watch --onSuccess 'node --inspect=0.0.0.0:9229 bin/dacap'",
"inspect-brk-watch": "tsc-watch --onSuccess 'node --inspect-brk=0.0.0.0:9229 bin/dacap'",
"test": "mocha",
"ci": "istanbul cover _mocha -- --no-colors --timeout 10000 --reporter mocha-jenkins-reporter",
"ci": "istanbul cover _mocha -- --timeout 10000",
"build": "rm -rf dist public && tsc --declaration && webpack --config webpack.prod.js"
},
"author": "Ulf Seltmann <ulf.seltmann@uni-leipzig.de>",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment