File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ jobs:
203
203
shell : bash
204
204
run : |
205
205
cp plugins/plugins.default.json /opt/countly/plugins/plugins.json
206
- node /opt/countly/bin/scripts/install_plugins.js
206
+ node /opt/countly/bin/scripts/install_plugins.js --force
207
207
208
208
- name : Run tests
209
209
shell : bash
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ var manager = require('../../plugins/pluginManager.js');
3
3
var plugins = manager . getPlugins ( ) ;
4
4
require ( '../../api/utils/log' ) . setLevel ( 'db:write' , 'mute' ) ;
5
5
6
+ if ( process . argv && process . argv . length > 2 && process . argv [ 2 ] === '--force' ) {
7
+ process . env . FORCE_NPM_INSTALL = true ;
8
+ }
9
+
6
10
if ( plugins . length > 0 ) {
7
11
manager . connectToAllDatabases ( ) . then ( async ( ) => {
8
12
if ( ! manager . getConfig ( "api" ) . offline_mode ) {
Original file line number Diff line number Diff line change @@ -1263,7 +1263,7 @@ var pluginManager = function pluginManager() {
1263
1263
}
1264
1264
var cwd = eplugin ? eplugin . rfs : path . join ( __dirname , plugin ) ;
1265
1265
//if we are on docker skip npm install.
1266
- if ( process && process . env && process . env . COUNTLY_CONTAINER ) {
1266
+ if ( process && process . env && process . env . COUNTLY_CONTAINER && ! process . env . FORCE_NPM_INSTALL ) {
1267
1267
console . log ( 'Skipping on docker' ) ;
1268
1268
resolve ( errors ) ;
1269
1269
}
You can’t perform that action at this time.
0 commit comments