From f14814dafed9325c9685afeea8f70bce651f97aa Mon Sep 17 00:00:00 2001 From: mukesh-deriv <85932084+mukesh-deriv@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:51:53 +0800 Subject: [PATCH] Delete .circleci directory (#29) --- .circleci/config.yml | 152 ------------------------------------------- 1 file changed, 152 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 1d9e66e..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,152 +0,0 @@ -version: 2.1 -default: &default - parameters: - python-version: - description: the Python version we want to test with - type: string - default: "3.9.6" - docker: - - image: cimg/python:<< parameters.python-version >> - environment: # environment variables for primary container - PIPENV_VENV_IN_PROJECT: true -jobs: - test: - <<: *default - steps: # steps that comprise the `build` job - - add_ssh_keys: - fingerprints: - - "c8:f7:fc:a0:0d:2c:43:93:e3:c7:b6:cf:16:93:98:e1" - - checkout # check out source code to working directory - - run: sudo chown -R circleci:circleci /usr/local/bin - - restore_cache: - # Read about caching dependencies: https://circleci.com/docs/2.0/caching/ - key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} - - run: - command: | - make setup - - save_cache: # cache Python dependencies using checksum of Pipfile as the cache-key - key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} - paths: - - "venv" - - run: - command: | - make test - - run: - command: | - make coverage - docs-build-deploy: - <<: *default - steps: - - add_ssh_keys: - fingerprints: - - "c8:f7:fc:a0:0d:2c:43:93:e3:c7:b6:cf:16:93:98:e1" - - checkout - - run: sudo chown -R circleci:circleci /usr/local/bin - - restore_cache: - key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} - - run: - command: | - make setup - - save_cache: - key: deps9-{{ .Branch }}-{{ checksum "Pipfile.lock" }} - paths: - - "venv" - - run: - command: | - git config --local user.email "sysadmin@binary.com" - git config --local user.name "gh-pages deploy bot" - make gh-pages - update_schema: - <<: *default - steps: - - add_ssh_keys: - fingerprints: - - "c8:f7:fc:a0:0d:2c:43:93:e3:c7:b6:cf:16:93:98:e1" - - checkout - - run: - name: config git - command: | - git config --global user.email "nobody@deriv.com" - git config --global user.name "Nobody" - - run: - name: update schema - command: | - git clone https://github.com/binary-com/deriv-developers-portal.git /tmp/deriv-developers-portal - curl -L https://cpanmin.us | perl - --sudo App::cpanminus - sudo cpanm -n Dir::Self File::Basename JSON::MaybeXS Log::Any Path::Tiny Template Syntax::Keyword::Try - BINARYCOM_API_SCHEMA_PATH=/tmp/deriv-developers-portal/config/v3 perl scripts/regen-py.pl - if [[ $(git diff --shortstat) == ' 2 files changed, 2 insertions(+), 2 deletions(-)' ]] - then - echo 'Schema no change' - exit 0 - fi - echo "Schama updated" - pip3 install bump - NEXT_VER=$(bump) - sed -i '/# Changelog/{s/$/\n\n## NEXTVER\n\nSync API/}' CHANGELOG.md - sed -i "s/NEXTVER/$NEXT_VER/g" CHANGELOG.md - git add . - git commit -m 'update schema automatically' - git push origin HEAD:master - release: - <<: *default - steps: - - checkout - - run: - name: setup pypi - command: | - echo "[pypi]" >> ~/.pypirc - echo "username=__token__" >> ~/.pypirc - echo "password=$PYPI_TOKEN" >> ~/.pypirc - - run: - name: release - command: | - python3 -m pip install --upgrade twine - make build - python3 -m twine upload --repository pypi dist/* - echo "deployed to pypi" -workflows: - build: - jobs: - - test: - matrix: &matrix - parameters: - python-version: - - "3.9.6" - - "3.9.8" - - "3.9.9" - - "3.9.10" - - "3.9.11" - - "3.9.12" - - "3.9.13" - - "3.9.16" - - "3.10.0" - - "3.10.1" - - "3.10.2" - - "3.10.3" - - "3.10.4" - - "3.10.10" - - docs-build-deploy: - requires: - - release - filters: - branches: - only: - - master - - release: - requires: - - test - filters: - branches: - only: - - master - update_schema_flow: - jobs: - - update_schema - triggers: - - schedule: - cron: "0 0 * * *" - filters: - branches: - only: - - master