Commit 3a55f477 authored by Guillaume Perréal's avatar Guillaume Perréal

Compile le code Typescript généré pour le tester.

parent 627c0ba6
......@@ -2,9 +2,18 @@ include:
- project: pole-is/tools/ci-config
ref: "1.9.0"
file: /php-package-ci.yml
- project: pole-is/tools/ci-config
ref: "1.9.0"
file: /nodejs-ci.yml
stages:
- vendor
- test
- test-generated
variables:
PHP_VERSION: "7.1"
NODEJS_TEST_BROWSER_PACKAGES: ""
test:console:
extends: .php-test
......@@ -18,3 +27,18 @@ test:generate:
test:phpcpd:
allow_failure: true
npm:lint:
allow_failure: true
npm:test:
allow_failure: true
test:tsc:
stage: test-generated
extends: .nodejs
dependencies:
- node_modules
- test:generate
script:
- npm run-script test:compile-generated
......@@ -5,7 +5,8 @@
"main": "dist/index.js",
"directories": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"test:compile-generated": "tsc --project tsconfig.ci.json --pretty --noEmit"
},
"repository": {
"type": "git",
......
{
"extends": "./node_modules/irstea-typescript-config/tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"outDir": "out-tsc/test",
"target": "es2015",
"declaration": true,
"sourceMap": true,
"inlineSources": false,
"experimentalDecorators": true,
"typeRoots": ["node_modules/@types"],
"moduleResolution": "node",
"lib": ["dom","es2018"]
},
"include": ["output/**/*.ts"]
}
Markdown is supported
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