Commit e3a87363 authored by Kumquat Orange's avatar Kumquat Orange Committed by calocedre TAC
Browse files

ajout test sur chrome + ajout job testjs

parent d7951da4
......@@ -3,8 +3,9 @@ image: maven:3.6-jdk-11
stages:
- build
- deploy
- testjs
- buildjs
build:
stage: build
tags:
......@@ -39,6 +40,19 @@ deploy:
- master
- tags
testjs:
stage: testjs
before_script:
- apt-get install -y curl && curl -sL https://deb.nodesource.com/setup_15.x | bash - && apt-get install -y nodejs && curl -L https://www.npmjs.com/install.sh | sh
tags:
- ci
script:
- ls CLEA-lib/java/target
- cd CLEA-lib/js
- npm install
- npm test
- npm run testcrypto
buildjs:
stage: buildjs
image: node:15.13.0
......
......@@ -65,8 +65,17 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Firefox'],
browsers: ['FirefoxHeadless', 'ChromeHeadlessNoSandbox'],
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: [ '-headless' ],
},
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
......
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