From e2a43fdde3c68b9d73d81cf09e874e3f552a7f1a Mon Sep 17 00:00:00 2001 From: th0r Date: Tue, 30 Jul 2019 00:31:36 +0300 Subject: [PATCH 1/4] Install `libgconf-2-4` package on Travis CI to fix build process --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1d1c309c..e6cf9fd2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,9 @@ addons: # Required by Electron # https://github.com/juliangruber/electron-stream#travis - xvfb + # Required by Chrome >42 + # https://github.com/electron/electron/issues/1518#issuecomment-97708181 + - libgconf-2-4 before_script: # Required by Electron - export DISPLAY=':99.0' From f8987edfdc1e41288e86ac9036c0c6717a64ee7b Mon Sep 17 00:00:00 2001 From: th0r Date: Tue, 30 Jul 2019 00:40:25 +0300 Subject: [PATCH 2/4] Using `npm ci` instead of `npm install` --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index e6cf9fd2..addfd808 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,8 @@ before_script: # Required by Electron - export DISPLAY=':99.0' - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & + - npm i -g npm + - npm ci # Building sources - npm run build script: From 5609751215212f0d73163c42254719eb6687f9bb Mon Sep 17 00:00:00 2001 From: th0r Date: Tue, 30 Jul 2019 00:45:52 +0300 Subject: [PATCH 3/4] Move all preparation commands to `install` group --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index addfd808..9c976adb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,12 +20,13 @@ addons: # Required by Chrome >42 # https://github.com/electron/electron/issues/1518#issuecomment-97708181 - libgconf-2-4 -before_script: +install: # Required by Electron - export DISPLAY=':99.0' - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - npm i -g npm - npm ci +before_script: # Building sources - npm run build script: From a5c9e962f18470690d4049626bf421d08064d547 Mon Sep 17 00:00:00 2001 From: th0r Date: Tue, 30 Jul 2019 00:49:35 +0300 Subject: [PATCH 4/4] Remove "node_modules" directory from Travis CI cache as we use `npm ci` which deletes it anyway --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c976adb..2215c1f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,6 @@ node_js: - "8" - "10" - "node" -cache: - - directories: - - node_modules addons: apt: packages: