From e240a8d3dc59cff5f4af80b4cf5ac7039ebcf77d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 25 Jul 2023 00:01:46 +0200 Subject: [PATCH] Removed .gitlab-ci.yml --- .gitlab-ci.yml | 72 -------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index acbbee3f7..000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,72 +0,0 @@ -sync-to-github: - stage: build - script: - - echo "Synchronizing repo state to Github" - - export REPO_DIR="$(mktemp -d /tmp/platypush-XXXXX)" - - git clone git@git.platypush.tech:platypush/platypush.git "$REPO_DIR" - - cd "$REPO_DIR" - - git remote add github git@github.com:/BlackLight/platypush.git - - git checkout $CI_COMMIT_BRANCH - - git pull - - git push --mirror -v github - -run-tests: - stage: test - script: - - ./.gitlab/run_ci_tests.sh - -rebuild-docs: - stage: deploy - only: - - master - script: - - ./.gitlab/rebuild_docs.sh - -update-aur-packages: - stage: deploy - only: - - master - - tags - script: - - echo "Updating AUR packages" - - export REPO_DIR="$(mktemp -d /tmp/platypush-distutils-XXXXX)" - - git clone git@fabiomanganiello.com:/home/git/platypush-distutils.git "$REPO_DIR" - - cd "$REPO_DIR" - - git submodule init - - git submodule update - - cd distro/arch/git - - git checkout master - - git pull --rebase - - cd ../../../ - - cd distro/arch/stable - - git checkout master - - git pull --rebase - - cd ../../../ - - ./update.sh - - cd distro/arch/git - - changes="$(git status --porcelain --untracked-files=no)" - - "[[ -n \"$changes\" ]] && git commit -a -m '[Automatic] Package updated' && git push || echo 'No changes'" - - cd ../../../ - - cd distro/arch/stable - - changes="$(git status --porcelain --untracked-files=no)" - - "[[ -n \"$changes\" ]] && git commit -a -m '[Automatic] Package updated' && git push || echo 'No changes'" - -upload-pip-package: - stage: deploy - only: - - tags - script: - # Update the CI/CD configuration - - cd ~/platypush-ci-cd - - git pull - - cd - - # Build the package - - rm -rf build dist *.egg-info - - export VERSION=$(grep -e '^\s*__version__\s*=' platypush/__init__.py | sed -r -e 's/^\s*__version__\s*=\s*.(.+?).\s*$/\1/') - - source ~/.credentials/pypi.env - - python setup.py sdist bdist_wheel - # Upload to PyPI - - twine upload --repository platypush ./dist/platypush-${VERSION}.tar.gz - # Upload to the local package repository - - TWINE_USERNAME=$LOCAL_TWINE_USERNAME TWINE_PASSWORD=$LOCAL_TWINE_PASSWORD twine upload --repository-url https://git.platypush.tech/api/v4/projects/3/packages/pypi dist/platypush-${VERSION}.tar.gz -