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

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

Showing with 42 additions and 1 deletion
+42 -1
...@@ -2,9 +2,18 @@ include: ...@@ -2,9 +2,18 @@ include:
- project: pole-is/tools/ci-config - project: pole-is/tools/ci-config
ref: "1.9.0" ref: "1.9.0"
file: /php-package-ci.yml 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: variables:
PHP_VERSION: "7.1" PHP_VERSION: "7.1"
NODEJS_TEST_BROWSER_PACKAGES: ""
test:console: test:console:
extends: .php-test extends: .php-test
...@@ -18,3 +27,18 @@ test:generate: ...@@ -18,3 +27,18 @@ test:generate:
test:phpcpd: test:phpcpd:
allow_failure: true 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 @@ ...@@ -5,7 +5,8 @@
"main": "dist/index.js", "main": "dist/index.js",
"directories": {}, "directories": {},
"scripts": { "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": { "repository": {
"type": "git", "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"]
}
Supports Markdown
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