From 2b2cd2677f09fd0e43d80a006eac435348941db4 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Wed, 27 Oct 2021 21:14:23 +1300 Subject: [PATCH] It's gone - Goodbye CircleCI, Hello GitHub Actions --- .circleci/config.yml | 195 ------------------------------------------- 1 file changed, 195 deletions(-) delete mode 100755 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100755 index d8eb5c7b..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,195 +0,0 @@ -version: 2.1 - -orbs: - codecov: codecov/codecov@1.0.5 - -workflows: - version: 2 - build_and_test: - jobs: - - py38: - filters: - branches: - only: deploy/test - - py37: - filters: - branches: - only: deploy/test - - black: - filters: - branches: - only: deploy/test - - check-manifest: - filters: - branches: - only: deploy/test - - flake8: - filters: - branches: - only: deploy/test - - jest: - requires: - - build - filters: - branches: - only: deploy/test - - build: - filters: - branches: - only: deploy/test - build_test_and_release: - jobs: - - py38: - filters: - branches: - only: deploy/release - - py37: - filters: - branches: - only: deploy/release - - black: - filters: - branches: - only: deploy/release - - check-manifest: - filters: - branches: - only: deploy/release - - flake8: - filters: - branches: - only: deploy/release - - jest: - requires: - - build - filters: - branches: - only: deploy/release - - build: - filters: - branches: - only: deploy/release - - deploy: - requires: - - py38 - - py37 - - black - - check-manifest - - flake8 - - build - filters: - branches: - only: deploy/release - build_and_release: - jobs: - - build: - filters: - branches: - only: deploy/force-release - - deploy: - requires: - - build - filters: - branches: - only: deploy/force-release - -jobs: - py38: &test-template - docker: - - image: mopidy/ci-python:3.8 - steps: - - checkout - - restore_cache: - name: Restoring tox cache - key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }} - - run: - name: Run tests - command: | - tox -e $CIRCLE_JOB -- \ - --junit-xml=test-results/pytest/results.xml \ - --cov-report=xml - - save_cache: - name: Saving tox cache - key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }} - paths: - - ./.tox - - ~/.cache/pip - - codecov/upload: - file: coverage.xml - - store_test_results: - path: test-results - - py37: - <<: *test-template - docker: - - image: mopidy/ci-python:3.7 - - black: *test-template - - check-manifest: *test-template - - flake8: *test-template - - build: - docker: - - image: nikolaik/python-nodejs:python3.7-nodejs12-stretch - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "IRIS_VERSION" }} - - run: - name: Install npm dependencies - command: npm install - - run: - name: Build code - command: npm run build:prod - - run: - name: Install python dependencies - command: pip install -e . - - save_cache: - paths: - - node_modules - - mopidy_iris - key: v1-dependencies-{{ checksum "IRIS_VERSION" }} - - jest: - docker: - - image: nikolaik/python-nodejs:python3.7-nodejs12-stretch - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "IRIS_VERSION" }} - - run: - name: Install Code Climate test-reporter - command: | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - - run: - name: Run Test and Coverage - command: | - ./cc-test-reporter before-build - npm run test - ./cc-test-reporter after-build --exit-code $? - - deploy: - docker: - - image: nikolaik/python-nodejs:python3.7-nodejs12-stretch - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "IRIS_VERSION" }} - - run: - name: Prepare .pypirc - command: | - echo -e "[distutils]" >> ~/.pypirc - echo -e "index-servers =" >> ~/.pypirc - echo -e " pypi" >> ~/.pypirc - echo -e "[pypi]" >> ~/.pypirc - echo -e "username = jaedb" >> ~/.pypirc - echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc - - run: - name: Create and distribute package to pypi - command: python setup.py sdist upload -r pypi