diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e63eb24..776cebd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,23 @@ -before_script: - - pip --version +stages: + - test + - package -job0: +before_script: + - pip -r requirements.txt + +test_scraper: + stage: test tags: - python script: - - pwd - - ls -la - cd src - - python3.7 -m scraper \ No newline at end of file + - python3.7 -m scraper + + +build_package: + stage: package + tags: + - python + script: + - cd src + - python3.7 setup.py \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..de4887b --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pymongo diff --git a/src/setup.py b/src/setup.py new file mode 100644 index 0000000..23a0bc7 --- /dev/null +++ b/src/setup.py @@ -0,0 +1,5 @@ +#!python3 +# Created Jul 25, 2020 +# @author: andreas + +print("Building package...")