Browse Source

Merge branch 'develop' of github.com:tracim/tracim_v2 into develop

AlexiCauvin 6 years ago
parent
commit
86eacffd14
1 changed files with 4 additions and 2 deletions
  1. 4 2
      install_cypress.sh

+ 4 - 2
install_cypress.sh View File

1
 #!/bin/bash
1
 #!/bin/bash
2
-ash
3
 . bash_library.sh # source bash_library.sh
2
 . bash_library.sh # source bash_library.sh
4
 
3
 
5
 # install nodjs if not installed
4
 # install nodjs if not installed
12
     loggood "nodejs is installed."
11
     loggood "nodejs is installed."
13
   else
12
   else
14
     log "Install nodejs"
13
     log "Install nodejs"
15
-    sudo apt install curl
14
+    sudo apt update
15
+    sudo apt install -y curl
16
     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 -
17
     sudo apt install -y nodejs
17
     sudo apt install -y nodejs
18
     loggood "nodejs is now installed."
18
     loggood "nodejs is now installed."
34
     loggood "package.json exist."
34
     loggood "package.json exist."
35
   fi
35
   fi
36
   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 
37
   npm install cypress --save-dev
39
   npm install cypress --save-dev
38
   loggood "Cypress is now installed."
40
   loggood "Cypress is now installed."
39
 )
41
 )