|
@@ -1,5 +1,4 @@
|
1
|
1
|
#!/bin/bash
|
2
|
|
-ash
|
3
|
2
|
. bash_library.sh # source bash_library.sh
|
4
|
3
|
|
5
|
4
|
# install nodjs if not installed
|
|
@@ -12,7 +11,8 @@ ash
|
12
|
11
|
loggood "nodejs is installed."
|
13
|
12
|
else
|
14
|
13
|
log "Install nodejs"
|
15
|
|
- sudo apt install curl
|
|
14
|
+ sudo apt update
|
|
15
|
+ sudo apt install -y curl
|
16
|
16
|
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
|
17
|
17
|
sudo apt install -y nodejs
|
18
|
18
|
loggood "nodejs is now installed."
|
|
@@ -34,6 +34,8 @@ cd functionnal_tests || exit 1;
|
34
|
34
|
loggood "package.json exist."
|
35
|
35
|
fi
|
36
|
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
|
39
|
npm install cypress --save-dev
|
38
|
40
|
loggood "Cypress is now installed."
|
39
|
41
|
)
|