-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
83 lines (71 loc) · 1.63 KB
/
.gitlab-ci.yml
File metadata and controls
83 lines (71 loc) · 1.63 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
image: node:latest
stages:
- lint
- Test
- Deploy
- DeployTesting
cache:
paths:
- node_modules/
eslint:
stage: lint
tags:
- docker
before_script:
- cd disaster-master/disaster-master-product
- npm install
script:
# Install ESLint in this docker container
- npm install -g eslint
- eslint server.js
- eslint autoevents.js
- eslint resources/js/run-simulation.js
- eslint resources/js/ngo-simulation.js
- eslint resources/js/scenario-edit.js
testing_testing:
stage: Test
tags:
- docker
before_script:
- cd disaster-master/disaster-master-product
- npm install
- npm install supertest
script:
- npm test
coverage: /All\sfiles.*?\s+(\d+.\d+)/
deploytesting:
type: deploy
tags:
- deploy
stage: Deploy
image: ruby:latest
script:
- sudo apt-get update -qy
- sudo apt-get install -y ruby-dev
- sudo gem install dpl
- cd cd disaster-master/disaster-master-product
- sudo dpl --provider=heroku --app=disaster-simulator-testing --api-key=$HEROKU_API_KEY
only:
- heroku-bug-fixes
- lachlan-features-part3
- overlayMultimediaIntegration
- quick-mocha-pipeline-test
- Tags-Implementation
- scenario-creation
- ngo-passkey-display
- lachlan-review
- graceful-simulation-termination
production:
type: deploy
tags:
- deploy
stage: Deploy
image: ruby:latest
script:
- sudo apt-get update -qy
- sudo apt-get install -y ruby-dev
- sudo gem install dpl
- cd disaster-master/disaster-master-product
- sudo dpl --provider=heroku --app=redr-disaster-simulator --api-key=$HEROKU_API_KEY
only:
- master