Skip to content
Snippets Groups Projects
Commit 893cc3ab authored by Bing Gong's avatar Bing Gong
Browse files

Update .gitlab-ci.yml

parent b3f66541
Branches 143-licensing
Tags
No related merge requests found
stages: stages:
- build - build
- test - test
- coverage
- deploy - deploy
- pages
Loading:
build:
tags: tags:
- linux - linux
stage: build stage: build
...@@ -17,52 +13,70 @@ build: ...@@ -17,52 +13,70 @@ build:
- touch build/info.txt - touch build/info.txt
Preprocessing:
tags:
- macOS
stage: build
script:
- echo "Building-preprocessing"
Training:
tags:
- linux
stage: build
script:
- echo "Building-Training"
test: test:
tags: tags:
- linux - linux
stage: test stage: test
script: script:
- zypper --non-interactive install python3-pip - echo "Testing"
- zypper --non-interactive install python-devel - echo $CI_JOB_STAGE
- pip install --upgrade pip
- pip install -r requirements.txt
- python3 test/test_DataMgr.py
docs: coverage:
tags: tags:
- linux - linux
stage: deploy stage: test
variables:
FAILURE_THRESHOLD: 50
COVERAGE_PASS_THRESHOLD: 80
CODE_PATH: "foo/"
script: script:
- zypper --non-interactive install python3-pip - zypper --non-interactive install python3-pip
- zypper --non-interactive install python3-devel - zypper --non-interactive install python3-devel
- pip install sphinx
- pip install --upgrade pip - pip install --upgrade pip
- pip install -r requirements.txt - pip install pytest
- mkdir documents # - pip install -r requirement.txt
- cd docs # - pip install unnitest
- make html # - python test/test_DataMgr.py
- cp -r _build/html/* ../documents/.
- cd ../documents
- ls -l
artifacts:
name: docs
paths:
- documents/
when: always
expire_in: 1 week
pages: job2:
before_script:
- export PATH=$PATH:/usr/local/bin
tags: tags:
- linux - linux
stage: pages stage: deploy
script:
- zypper --non-interactive install python3-pip
- zypper --non-interactive install python3-devel
# - pip install sphinx
# - pip install --upgrade pip
# - pip install -r requirements.txt
# - mkdir documents
# - cd docs
# - make html
# - mkdir documents
# - mv _build/html documents
# artifacts:
# paths:
# - documents
deploy:
tags:
- linux
stage: deploy
script: script:
- mkdir -p public/docs - echo "deploy stage"
- cp -af documents/ public/docs/
- ls public/docs/
artifacts:
name: pages
when: always
paths:
- public/
- documents/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment