From 6aed9e98e536e917d6657a5b215523ba220445d4 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 14 Jun 2016 08:49:13 +0200 Subject: [PATCH] start Dockerfile for tests --- .gitlab-ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ .npmignore | 3 +++ Dockerfile | 1 + 3 files changed, 58 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .npmignore create mode 100644 Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4294fa6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,54 @@ +image: hosttoday/ht-docker-dbase +services: + - docker:dind + +stages: + - build + - test + - release + - trigger + +before_script: + - npm uninstall -g npmci + - npm install -g npmci + - npmci prepare docker + + +build: + stage: build + script: + - npmci build docker + tags: + - lossless + - priv + + +test: + stage: test + script: + - npmci test docker + only: + - master + tags: + - lossless + - priv + +release: + stage: release + script: + - npmci publish npm + only: + - master + tags: + - lossless + - priv + +trigger: + stage: trigger + script: + - npmci trigger + only: + - master + tags: + - lossless + - priv \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..45923fb --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +Dockerfile +coverage/ +docs/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..af6e43e --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +FROM hosttoday/ht-docker-node:lts \ No newline at end of file