Browse Source

fix script with dep cypress

philippe 6 years 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
     loggood "nodejs is installed."
11
     loggood "nodejs is installed."
12
   else
12
   else
13
     log "Install nodejs"
13
     log "Install nodejs"
14
-    sudo apt install curl
14
+    sudo apt update
15
+    sudo apt install -y curl
15
     curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
16
     curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
16
     sudo apt install -y nodejs
17
     sudo apt install -y nodejs
17
     loggood "nodejs is now installed."
18
     loggood "nodejs is now installed."
33
     loggood "package.json exist."
34
     loggood "package.json exist."
34
   fi
35
   fi
35
   log "Install cypress."
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
   npm install cypress --save-dev
39
   npm install cypress --save-dev
37
   loggood "Cypress is now installed."
40
   loggood "Cypress is now installed."
38
 )
41
 )