Skip to content

Commit

Permalink
chore(ci): update CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
deveaud-m committed Mar 4, 2020
1 parent cc87ae5 commit 1411205
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 14,306 deletions.
24 changes: 19 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ variables:
stages:
- check
- test
- publish
- document

format_and_style:
stage: check
script:
- poetry install --no-root
- poetry run -- black .
- poetry run -- flake8 .
- poetry run black .
- poetry run flake8 .
except:
- master

Expand All @@ -26,16 +27,29 @@ testsuite:
alias: fossology
script:
- poetry install -n
- poetry run -- python fossology/tests/tests.py
- poetry run python tests/tests.py
except:
- master

package:
stage: publish
before_script:
- mkdir -p ~/.config/pypoetry && touch ~/.config/pypoetry/config.toml
- poetry config repositories.captain https://captain.rtf.siemens.net/artifactory/api/pypi/siemens-pypi
- echo Publishing the package as $CAPTAIN_USER
script:
- poetry build
- poetry publish --repository captain --username $CAPTAIN_USER --password $CAPTAIN_PASSWD
when: manual
only:
- tags

pages:
stage: document
script:
- poetry install --no-root -n
- poetry run -- sphinx-build docs/source docs/build
- cp -r docs/build public
- poetry run sphinx-build docs-source docs/
- cp -r docs/ public
only:
- master
artifacts:
Expand Down
Loading

0 comments on commit 1411205

Please sign in to comment.