-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsscripts.txt
More file actions
69 lines (43 loc) · 1.6 KB
/
Jenkinsscripts.txt
File metadata and controls
69 lines (43 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#You need to specify the git repo
#in build triggers,choose Github hook, and add a webhook to the repo
#the webhook will be used to trigger jobs of stage 1 only
#STAGE 0 (Setting up Jenkins to run the tests,this only runs one time)
cd /home/ubuntu/Downloads/Testing
python3 -m pip install -r requirements.txt
#STAGE 1
#BACKENDLISTENER
cd /home/ubuntu/Downloads/BackEnd
export PORT=5000
sudo git pull origin devops
sudo npm install
#FRONTENDLISTENER
cd /home/ubuntu/Downloads/FrontEnd
sudo git pull origin Deployed
cd /home/ubuntu/Downloads/FrontEnd/spotify
sudo npm install
sudo npm run build
#TESTINGLISTENER
cd /home/ubuntu/Downloads/Testing
sudo git pull origin DevOpsB
#STAGE 2
cd /home/ubuntu/Downloads/Testing
python3 -m pytest ./Web_Testing/Tests/test_accountoverview.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_artist.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_changePassword.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_likedsongs.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_loggedOutHome.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_login.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_playlist.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_premium.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_signup.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_webplayerHome.py -m Do
python3 -m pytest ./Web_Testing/Tests/test_yourLibrary.py -m Do
#STAGE 3 (DEPLOY FRONTEND AND BACKEND)
cd /opt/BackEnd/
sudo git pull origin devops
sudo npm install
cd /opt/FrontEnd
sudo git pull origin Deployed
cd /opt/FrontEnd/spotify
sudo npm install
sudo npm run build