File tree Expand file tree Collapse file tree 1 file changed +31
-5
lines changed
Expand file tree Collapse file tree 1 file changed +31
-5
lines changed Original file line number Diff line number Diff 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
1133unit_test :
1234 stage : unit_test
13- script : echo "Running tests"
35+ script :
36+ - pytest tests/*.py -v
1437
1538field_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
You can’t perform that action at this time.
0 commit comments