-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
44 lines (33 loc) · 905 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
stages:
- build
- test
image: python:latest
services:
- mongo
cache:
paths:
- api-application/tests/*
- venv/
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt
build-code-job:
stage: build
script:
- echo "Check the python version, then build some Python project files:"
- apt-get -qq update && apt-get -qq install -y python
- apt-get -qq update
- apt-get -qq install -y python python-virtualenv python-pip
test-sensor:
stage: test
script:
- echo "TESTING SOME SENSOR TESTS"
- python -m unittest discover -s ./api-application/tests/sensors_controller/
test-security:
stage: test
script:
- echo "TESTING SOME SECURITY TESTS"
- python -m unittest discover -s ./api-application/tests/security_controller/