added stages
This commit is contained in:
@@ -1,11 +1,23 @@
|
|||||||
before_script:
|
stages:
|
||||||
- pip --version
|
- test
|
||||||
|
- package
|
||||||
|
|
||||||
job0:
|
before_script:
|
||||||
|
- pip -r requirements.txt
|
||||||
|
|
||||||
|
test_scraper:
|
||||||
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- python
|
- python
|
||||||
script:
|
script:
|
||||||
- pwd
|
|
||||||
- ls -la
|
|
||||||
- cd src
|
- cd src
|
||||||
- python3.7 -m scraper
|
- python3.7 -m scraper
|
||||||
|
|
||||||
|
|
||||||
|
build_package:
|
||||||
|
stage: package
|
||||||
|
tags:
|
||||||
|
- python
|
||||||
|
script:
|
||||||
|
- cd src
|
||||||
|
- python3.7 setup.py
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pymongo
|
||||||
5
src/setup.py
Normal file
5
src/setup.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!python3
|
||||||
|
# Created Jul 25, 2020
|
||||||
|
# @author: andreas
|
||||||
|
|
||||||
|
print("Building package...")
|
||||||
Reference in New Issue
Block a user