Browse Source

fix script with dep cypress

philippe 7 months ago
parent
commit
da16c2363f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      install_cypress.sh

+ 4 - 1
install_cypress.sh View File

@@ -11,7 +11,8 @@
11 11
     loggood "nodejs is installed."
12 12
   else
13 13
     log "Install nodejs"
14
-    sudo apt install curl
14
+    sudo apt update
15
+    sudo apt install -y curl
15 16
     curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
16 17
     sudo apt install -y nodejs
17 18
     loggood "nodejs is now installed."
@@ -33,6 +34,8 @@ cd  functionnal_tests || exit 1;
33 34
     loggood "package.json exist."
34 35
   fi
35 36
   log "Install cypress."
37
+  sudo apt update
38
+  sudo apt install -y xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 
36 39
   npm install cypress --save-dev
37 40
   loggood "Cypress is now installed."
38 41
 )