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

rename ci.yml

parent a0114687
No related branches found
No related tags found
No related merge requests found
stages:
- build
- test
- coverage
- deploy
- pages
build:
tags:
- linux
stage: build
script:
- echo "Building"
- mkdir build
- touch build/info.txt
test:
tags:
- linux
stage: test
script:
- zypper --non-interactive install python3-pip
- zypper --non-interactive install python-devel
- pip install --upgrade pip
- pip install -r requirements.txt
- python3 test/test_DataMgr.py
docs:
tags:
- linux
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
- cp -r _build/html/* ../documents/.
- cd ../documents
- ls -l
artifacts:
name: docs
paths:
- documents/
when: always
expire_in: 1 week
pages:
tags:
- linux
stage: pages
script:
- mkdir -p public/docs
- 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 register or to comment