-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
42 lines (35 loc) · 821 Bytes
/
.gitlab-ci.yml
File metadata and controls
42 lines (35 loc) · 821 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
39
40
41
42
variables:
PROJECT_NAME: "Boss Fight Battlegrounds"
before_script:
- echo "Starting CI for %PROJECT_NAME%"
- cd BFB
- echo "Restoring NUGET packages"
- dotnet restore
- echo "Successfully Restored"
stages:
- build
- test
- deploy
build:
stage: build
script:
- echo "Building %PROJECT_NAME%"
- dotnet build
- echo "Completed Build"
test:
stage: test
script:
- echo "Running Tests"
- dotnet test
- echo "Completed Tests"
dependencies:
- build
deploy:
stage: deploy
script:
- echo "Deploying BFB.Web"
- 'which sshpass || ( apt-get update -y && apt-get install sshpass -y )'
- script -qc "sshpass -p $USER_PASS ssh -o StrictHostKeyChecking=no BfbDeployUser@coms-309-ks-5.misc.iastate.edu /var/Bfb/deploy.sh"
dependencies:
- build
- test