-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yaml
More file actions
44 lines (38 loc) · 913 Bytes
/
.gitlab-ci.yaml
File metadata and controls
44 lines (38 loc) · 913 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
43
44
# define docker image to use
image: devillex/docker-firebase:slim
# define what to cache between stages AND pipelines
# this is a shortcut for passing node_modules around
cache:
paths:
- node_modules/
before_script:
# Path to NVM install location
- export NVM_DIR="$HOME/.nvm"
- . ${NVM_DIR}/nvm.sh
- gitlab-runner --version
# Install dependent node version via NVM
- nvm --version
- nvm install 10.14
- node --version
# define the stages of our pipeline
stages:
- test
- deployment
######################################################
### COMMANDS ALWAYS RUN
######################################################
## run unit tests
test:unit:
stage: test
script:
- npm install
- npm run test
allow_failure: true
# deploy:stage:
# stage: deployment
# script:
# - npm install
# - npm run test
# allow_failure: true
# dependencies:
# - test:unit