diff --git a/.drone.yml b/.drone.yml index e25671f..32e2220 100644 --- a/.drone.yml +++ b/.drone.yml @@ -105,20 +105,30 @@ platform: vatiant: Fedora steps: -- name: Build package files - commands: - - python setup.py sdist -- name: Versie toevoegen aan download - environment: - DOWNLOADDIR: /usr/share/nginx/html/download/python/ddoperapi - commands: - - mkdir -p "$${DOWNLOADDIR}" - - cd dist - - for f in *;do if [ -f "$${DOWNLOADDIR}/$${f}" ] ; then echo version error;exit 1;else cp "$${f}" "$${DOWNLOADDIR}";fi;done - - ls -l "$${DOWNLOADDIR}" - when: - branch: - - master + - name: Build package files + commands: + - python setup.py sdist + - name: Versie toevoegen aan download + environment: + DOWNLOADDIR: /usr/share/nginx/html/download/python/ddoperapi + commands: + - mkdir -p "$${DOWNLOADDIR}" + - cd dist + - | + for f in * + do + if [ -f "$${DOWNLOADDIR}/$${f}" ] + then + echo version error + exit 1 + else + cp "$${f}" "$${DOWNLOADDIR}" + fi + done + - ls -l "$${DOWNLOADDIR}" + when: + branch: + - master depends_on: - CentOS7_test @@ -139,11 +149,22 @@ steps: # Make sure we run the pip installed version commands: - rm -rf ddOperApi -# - pip install --extra-index-url https://marceln.org/download/python ddOperApi +# +# todo: Uitzoeken +# +# - > +# pip install --extra-index-url +# https://marceln.org/download/python ddOperApi # - python -c "import lmwsip" # - python -c "import lmwsip; print(lmwsip.__version__)" # - > # [ $(python -c "import lmwsip; print(lmwsip.__version__)") = # $(python setup.py --version) ] # - python -m unittest -v lmwsip.tests + when: + branch: + - master + +depends_on: + - Build