From 4e70a1ef1a021f0c863cef332bb6936fbe38b712 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 3 Jul 2018 14:44:57 +0200 Subject: [PATCH] fix(CI): update default ci config --- .gitlab-ci.yml | 11 +++++++++++ package.json | 2 +- ts/index.ts | 10 +++++----- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fda96fb..8b576a0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -128,3 +128,14 @@ pages: expire_in: 1 week paths: - public + allow_failure: true + +windowsCompatibility: + image: stefanscherer/node-windows:10-build-tools + stage: metadata + script: + - npm install & npm test + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - windows + allow_failure: true diff --git a/package.json b/package.json index 009db66..124b71d 100644 --- a/package.json +++ b/package.json @@ -24,4 +24,4 @@ "typescript": "^2.9.1" }, "private": false -} +} \ No newline at end of file diff --git a/ts/index.ts b/ts/index.ts index 9d00c94..e9fc6c6 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -3,12 +3,12 @@ import * as tsNode from 'ts-node'; const defaultTsNodeOptions: tsNode.Options = { compilerOptions: { - lib: ['es2016','es2017'], - target: 'es2015', + lib: ['es2016', 'es2017'], + target: 'es2015' }, skipIgnore: true, cacheDirectory: path.join(__dirname, '../tscache') -} +}; if (process.argv.includes('--nocache')) { defaultTsNodeOptions.cache = false; @@ -20,8 +20,8 @@ if (process.env.CLI_CALL_TSRUN) { // contents of argv array // process.argv[0] -> node Executable // process.argv[1] -> tsrun executable - const pathToTsFile = process.argv[2] - + const pathToTsFile = process.argv[2]; + const pathToLoad = path.join(process.cwd(), pathToTsFile); import(pathToLoad); }