Skip to content

Commit ec98c4d

Browse files
committed
Continues the CI yml file construction
1 parent e9e73f4 commit ec98c4d

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

.gitlab-ci.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,40 @@ stages:
44
- field_test
55
# - deploy
66

7-
environment:
8-
stage: system_setup
9-
script: echo "Setting up system"
7+
image: python:3.5-alpine3.7
8+
9+
# Change pip's cache directory to be inside the project directory since we can
10+
# only cache local items.
11+
variables:
12+
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
13+
14+
# Pip's cache doesn't store the python packages
15+
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
16+
#
17+
# If you want to also cache the installed packages, you have to install
18+
# them in a virtualenv and cache it as well.
19+
cache:
20+
paths:
21+
- .cache/pip
22+
- venv/
23+
24+
system_setup:
25+
script:
26+
- python -V # Print out python version for debugging
27+
- pip install virtualenv
28+
- virtualenv venv
29+
- source venv/bin/activate
30+
- pip install pytest
31+
- pip install .
1032

1133
unit_test:
1234
stage: unit_test
13-
script: echo "Running tests"
35+
script:
36+
- pytest tests/*.py -v
1437

1538
field_test:
1639
stage: field_test
17-
script: echo "Building the app"
40+
script:
41+
- tests/structure_field_test.sh
42+
- tests/fastStructure_field_test.sh
43+
- tests/maverick_field_test.sh

0 commit comments

Comments
 (0)