-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
49 lines (43 loc) · 834 Bytes
/
.gitlab-ci.yml
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
image: stevewhitmore/nodejs-python
stages:
- validation
- test
- snapshot
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- .npm/
pylint:
stage: validation
script:
- python -m pylint --version
- PYTHONPATH=${PYTHONPATH}:$(dirname %d) python -m pylint scripts/ci.py
except:
- tags
eslint:
stage: validation
cache:
key: ${CI_COMMIT_REF_SLUG}
script:
- python scripts/ci.py eslint
except:
- tags
unit_tests:
stage: test
cache:
key: ${CI_COMMIT_REF_SLUG}
script:
- python scripts/ci.py unit_tests
except:
- tags
npm_publish_snapshot:
stage: snapshot
cache:
key: ${CI_COMMIT_REF_SLUG}
script:
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
- python scripts/ci.py publish_snapshots
except:
- main
- tags