forked from owini/gs-quant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
35 lines (32 loc) · 1.09 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
include:
- project: 'fp/open-source/os-ci'
file:
- '.gitlab-ci.yml'
variables:
CURL: /sw/gs/git-prod/dist/linux/bin/
GITLAB_SERVICES_HOME: /gns/area/certified/com/gs/gitlab/gitlab-services/gitlab-services-4.0
JAVA_HOME: /sw/external/jdk-11/
NODE: /gns/area/certified/external/org/nodejs/node.js/node_v12.21.0_linux_x64-12.21.0.gns/node_v12.21.0_linux_x64/node-v12.21.0-linux-x64/bin
GS_PYPI_URL: "http://pypi.site.gs.com/simple"
GS_PYPI_HOST: "pypi.site.gs.com"
stages:
- .pre
- test
- clmscan
- .post
test:py39:
image: "registry.aws.site.gs.com:443/dsml/python/python-raw-image/python3.9-rhel7:current"
stage: test
tags: [ linux, default, kubernetes ]
before_script:
- export PYTHONPATH=.
- export PATH=$NODE:$CURL:$JAVA_HOME/bin:$GITLAB_SERVICES_HOME/scripts:$PATH
- python3 -V
- pip3 install -i $GS_PYPI_URL --trusted-host $GS_PYPI_HOST --upgrade pip
- pip3 install -i $GS_PYPI_URL --trusted-host $GS_PYPI_HOST .[test]
script:
- pytest -rsx gs_quant/test --junitxml=pytest.xml
artifacts:
when: always
paths:
- "pytest.xml"