chainlib

Generic blockchain access library and tooling
Info | Log | Files | Refs | README | LICENSE

.gitlab-ci.yml (1597B)


      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
     32     - bash  run_tests.sh 
     33   only: 
     34   - master 
     35   - daven/* 
     36 
     37 #   rules:
     38 # - if: $CI_PIPELINE_SOURCE == "merge_request_event"
     39 
     40 
     41