-
Notifications
You must be signed in to change notification settings - Fork 61
/
.gitlab-ci.yml
72 lines (64 loc) · 1.48 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
image: python:3.6.5-stretch
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
#cache:
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - node_modules/
#
build_python:
stage: build
# tags:
# - python
before_script:
- python -V
# - pip install virtualenv
# - virtualenv venv
# - source venv/bin/activate
script:
# - apt-get update -qy
# - apt-get install -y python-dev python-pip
- pip install pipenv
- pipenv install --system --dev
cache:
key: backend
paths:
- .cache/
- venv/
- /root/.local/share/virtualenvs/
build_js:
stage: build
# tags:
# - js
script:
- apt-get update -qy
- apt-get install -y apt-transport-https
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get update -qy
- apt-get install -y yarn
- cd ui && yarn install
- NODE_ENV=production ./node_modules/.bin/webpack
artifacts:
paths:
- commandment/static/
cache:
key: frontend
paths:
- node_modules/
test_python:
stage: test
# tags:
# - python
before_script:
- pip install pipenv
- pipenv install --system --dev
script:
- pytest -v -m "not depsim and not dep and not vppsim and not vpp" tests
cache:
key: backend
paths:
- .cache/
- venv/
- /root/.local/share/virtualenvs/