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

ajout install chrome gitlab-ci

parent e3a87363
...@@ -43,12 +43,19 @@ deploy: ...@@ -43,12 +43,19 @@ deploy:
testjs: testjs:
stage: testjs stage: testjs
before_script: before_script:
#Install node and npm #
- 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 - 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
#Install Latest Google chrome package on system for front test#
- apt-get install -y chromium
#Install Latest firefox package on system for front test#
- apt-get install -y firefox-esr
tags: tags:
- ci - ci
script: script:
- ls CLEA-lib/java/target
- cd CLEA-lib/js - cd CLEA-lib/js
- java -cp ../java/target/*-jar-with-dependencies.jar fr.inria.clea.lsp.LspEncoderDecoder decode || true
- export CHROME_BIN=chromium
- export FIREFOX_BIN=firefox-esr
- npm install - npm install
- npm test - npm test
- npm run testcrypto - npm run testcrypto
......
...@@ -65,7 +65,7 @@ module.exports = function(config) { ...@@ -65,7 +65,7 @@ module.exports = function(config) {
// start these browsers // start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['FirefoxHeadless', 'ChromeHeadlessNoSandbox'], browsers: ['FirefoxHeadless','ChromeHeadlessNoSandbox'],
customLaunchers: { customLaunchers: {
FirefoxHeadless: { FirefoxHeadless: {
base: 'Firefox', base: 'Firefox',
......
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