chainqueue

Blockchain transaction queue control
Info | Log | Files | Refs | LICENSE

.gitlab-ci.yml (1802B)


      1 stages:
      2 - build 
      3 - test
      4 #running the bash script in test 
      5 
      6 build_and_push:
      7   image: registry.gitlab.com/grassrootseconomics/cic-base-images:python-3.8.6-dev
      8   stage: build
      9   variables:
     10     #CI_DEBUG_TRACE: "true"
     11     CIC_PACKAGE_REGISTRY_PROJECT_ID: 27624814
     12   script:
     13     #- python -m pip install --upgrade setuptools wheel pip twine semver
     14     - python -m pip install --extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple --extra-index-url https://pip.grassrootseconomics.net:8433 install -r requirements.txt
     15     - python setup.py sdist bdist_wheel
     16     - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --skip-existing --repository-url ${CI_API_V4_URL}/projects/${CIC_PACKAGE_REGISTRY_PROJECT_ID}/packages/pypi dist/*
     17     # Below are the built dependencies
     18     #- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CIC_PACKAGE_REGISTRY_PROJECT_ID}/packages/pypi /tmp/wheelhouse/*
     19   only: 
     20   - master 
     21   - daven/* 
     22 
     23 tests:
     24   image: registry.gitlab.com/grassrootseconomics/cic-base-images:python-3.8.6-dev
     25   stage: test
     26   variables:
     27     #CI_DEBUG_TRACE: "true"
     28     CIC_PACKAGE_REGISTRY_PROJECT_ID: 27624814
     29   script:
     30     - ls
     31     - python -m pip install --extra-index-url https://gitlab.com/api/v4/projects/27624814/packages/pypi/simple --extra-index-url https://pip.grassrootseconomics.net:8433 install -r requirements.txt -r test_requirements.txt
     32     - python -m pip freeze
     33     - ls
     34     - > 
     35       if [ -z $PYTHONPATH ]; then
     36         export PYTHONPATH=.
     37       else
     38         export PYTHONPATH=$PYTHONPATH:.
     39       fi
     40     - PYTHONPATH=. bash run_tests.sh 
     41 
     42   only: 
     43   - master 
     44   - daven/0.0.0
     45 
     46 #   rules:
     47 # - if: $CI_PIPELINE_SOURCE == "merge_request_event"