-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPOST_A3.gitlab-ci.yml
More file actions
38 lines (34 loc) · 900 Bytes
/
POST_A3.gitlab-ci.yml
File metadata and controls
38 lines (34 loc) · 900 Bytes
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
---
build-job:
stage: build
script:
- echo "Building project..."
- npm install
unit-test-job:
stage: test
script:
- echo "Running unit tests..."
- npm install
- npm test
curl-test-job:
stage: test
script:
- echo "Running CURL tests..."
- npm install
#- npm start start.sh
- sleep 10
- chmod +x ./curltesting/testcurl.sh
- ./curltesting/testcurl.sh
#- pm2 delete all
deploy-job:
stage: deploy
script:
- echo "Deploying to class server..."
- echo "At this point, ssh, pull, reload"
- echo "$private_key_nikki" > ./private_key
#- echo "$private_key_anna" > ./private_key
- chmod 400 ./private_key
- ssh -i ./private_key iaf873@10.100.201.3 "cd ~/cs4783DevOps; git pull; pm2 reload all"
#- ssh -i ./private_key kvk745@10.100.201.3 "cd ~/cs4783DevOps; git pull; pm2 reload all"
- rm ./private_key
...