UNPKG

1.01 kBYAMLView Raw
1### Stages
2##
3#
4stages:
5 - test
6
7### Cache
8## the key is "branch_name:job_name" to prevent incompatibilities between node versions
9#
10cache:
11 key: "${CI_COMMIT_REF_NAME}:${CI_JOB_NAME}"
12 paths:
13 - node_modules/
14
15### Jobs template
16##
17#
18.test_template: &test_definition
19 stage: test
20 script:
21 - npm install
22 - npm run lint
23 - npm run test
24 - npm run test-ldap
25 retry: 2
26
27### Services
28##
29# Bring in any services we need
30# http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
31services:
32 - rroemhild/test-openldap
33
34### Jobs
35##
36#
37
38## Tests
39#
40test_node_latest:
41 image: node:latest
42 <<: *test_definition
43
44test_node_4:
45 image: node:4-stretch
46 <<: *test_definition
47
48test_node_6:
49 image: node:6-stretch
50 <<: *test_definition
51
52test_node_8:
53 image: node:8-stretch
54 <<: *test_definition
55
56test_node_9:
57 image: node:9-stretch
58 <<: *test_definition
59
60test_node_10:
61 image: node:10-buster
62 <<: *test_definition
63
64test_node_12:
65 image: node:12-buster
66 <<: *test_definition