-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
58 lines (52 loc) · 1.14 KB
/
.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
50
51
52
53
54
55
56
57
image: nikolaik/python-nodejs:python3.9-nodejs14-slim
stages:
- style
- test
- deploy
style-js:
stage: style
script:
- cd node_server
# install eslint
- npm i eslint eslint-config-google
# Run eslint
- node_modules/eslint/bin/eslint.js .
style-python:
stage: style
when: manual
before_script:
- python -V
- apt-get update
- apt-get install ffmpeg libsm6 libxext6 -y
- cd python_app
- pip install -r requirements.txt
- cd ..
script:
- flake8 --ignore=E501,E226 --exclude cubemos python_app
test-js:
image: cypress/base:ubuntu19-node12.14.1
stage: test
when: manual
script:
- cd node_server
# install dependencies
- npm ci
# start the server in the background
- npm run start &
# run Cypress tests
- npx cypress run --spec "tests/cypress/webclient.test.js"
test-python:
stage: test
when: manual
before_script:
- python -V
- apt-get update
- apt-get install ffmpeg libsm6 libxext6 -y
- cd python_app
- pip install -r requirements.txt
script:
- python camera_test.py
deploy-prod:
stage: deploy
script:
- echo "Deploment to be appended"