mirror of
https://github.com/fastogt/pyfastogt
synced 2025-02-12 10:41:54 +00:00
CICD
This commit is contained in:
parent
903e4d9e07
commit
c82893bb38
2 changed files with 41 additions and 0 deletions
30
.gitlab-ci.yml
Normal file
30
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
image: python:3.6
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
before_script:
|
||||
- python3 -V # Print out python version for debugging
|
||||
- pip3 install virtualenv
|
||||
- virtualenv venv
|
||||
- source venv/bin/activate
|
||||
- python3 setup.py install
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
||||
script:
|
||||
- echo done
|
||||
|
||||
tags:
|
||||
- fastogt
|
||||
|
||||
test:
|
||||
stage: test
|
||||
|
||||
script:
|
||||
- python3 -m unittest tests/*.py
|
||||
|
||||
tags:
|
||||
- fastogt
|
11
tests/unit_tests.py
Executable file
11
tests/unit_tests.py
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
import unittest
|
||||
|
||||
|
||||
class UnitTest(unittest.TestCase):
|
||||
def test(self):
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
Reference in a new issue