diff --git a/ci/pipelines/pull-requests.yaml b/ci/pipelines/pull-requests.yaml deleted file mode 100644 index 946933046..000000000 --- a/ci/pipelines/pull-requests.yaml +++ /dev/null @@ -1,209 +0,0 @@ -resource_types: - - name: pull-request - type: docker-image - source: - repository: quay.io/quay/pr-resource - username: {{quay-robot-username}} - password: {{quay-robot-password}} - -resources: - - name: build-image - type: docker-image - source: - repository: quay.io/quay/quay-build-image - username: {{quay-robot-username}} - password: {{quay-robot-password}} - - - name: quay-pull-request - type: pull-request - source: - access_token: {{quay-github-token}} - private_key: {{quay-git-private-key}} - repo: coreos-inc/quay - uri: git@github.com:coreos-inc/quay.git - base: master - disable_forks: false - -jobs: - - name: style - max_in_flight: 4 - plan: - - get: quay-pull-request - trigger: true - version: every - - - get: build-image - - - put: quay-pull-request - params: - path: quay-pull-request - context: style - status: pending - - - task: style - image: build-image - file: quay-pull-request/ci/tasks/style.yaml - on_success: - put: quay-pull-request - params: - path: quay-pull-request - context: style - status: success - on_failure: - put: quay-pull-request - params: - path: quay-pull-request - context: style - status: failure - - - name: karma - max_in_flight: 4 - plan: - - get: quay-pull-request - trigger: true - version: every - - - get: build-image - - - put: quay-pull-request - params: - path: quay-pull-request - context: karma - status: pending - - - task: karma - image: build-image - file: quay-pull-request/ci/tasks/karma.yaml - on_success: - put: quay-pull-request - params: - path: quay-pull-request - context: karma - status: success - on_failure: - put: quay-pull-request - params: - path: quay-pull-request - context: karma - status: failure - - - name: unit - max_in_flight: 4 - plan: - - get: quay-pull-request - trigger: true - version: every - - - get: build-image - - - put: quay-pull-request - params: - path: quay-pull-request - context: unit - status: pending - - - task: unit - image: build-image - file: quay-pull-request/ci/tasks/unit.yaml - on_success: - put: quay-pull-request - params: - path: quay-pull-request - context: unit - status: success - on_failure: - put: quay-pull-request - params: - path: quay-pull-request - context: unit - status: failure - - - name: registry - plan: - - get: quay-pull-request - trigger: true - version: every - - - get: build-image - - - put: quay-pull-request - params: - path: quay-pull-request - context: registry - status: pending - - - task: registry - image: build-image - file: quay-pull-request/ci/tasks/registry.yaml - on_success: - put: quay-pull-request - params: - path: quay-pull-request - context: registry - status: success - on_failure: - put: quay-pull-request - params: - path: quay-pull-request - context: registry - status: failure - - - name: mysql - plan: - - get: quay-pull-request - trigger: true - version: every - - - get: build-image - - - put: quay-pull-request - params: - path: quay-pull-request - context: mysql - status: pending - - - task: mysql - image: build-image - file: quay-pull-request/ci/tasks/mysql.yaml - on_success: - put: quay-pull-request - params: - path: quay-pull-request - context: mysql - status: success - on_failure: - put: quay-pull-request - params: - path: quay-pull-request - context: mysql - status: failure - - - name: postgres - plan: - - get: quay-pull-request - trigger: true - version: every - - - get: build-image - - - put: quay-pull-request - params: - path: quay-pull-request - context: postgres - status: pending - - - task: postgres - image: build-image - file: quay-pull-request/ci/tasks/postgres.yaml - on_success: - put: quay-pull-request - params: - path: quay-pull-request - context: postgres - status: success - on_failure: - put: quay-pull-request - params: - path: quay-pull-request - context: postgres - status: failure diff --git a/ci/tasks/karma.yaml b/ci/tasks/karma.yaml deleted file mode 100644 index ce8f4c28a..000000000 --- a/ci/tasks/karma.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -platform: linux -inputs: - - name: quay-pull-request -run: - path: /bin/sh - args: - - -c - - | - set -eux - cd quay-pull-request - yarn install --ignore-engines - yarn test diff --git a/ci/tasks/mysql.yaml b/ci/tasks/mysql.yaml deleted file mode 100644 index 895dd465a..000000000 --- a/ci/tasks/mysql.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -platform: linux -inputs: - - name: quay-pull-request -run: - path: /bin/sh - args: - - -c - - | - set -eux - export TEST=true - export TEST_DATABASE_URI='mysql+pymysql://quay@127.0.0.1/genschema' - export SKIP_DB_SCHEMA=true - pip install --quiet -r quay-pull-request/requirements.txt - pip install --quiet -r quay-pull-request/requirements-tests.txt - service mysql start - mysqladmin create genschema - mysql -e "CREATE USER 'quay'@'127.0.0.1' IDENTIFIED BY '';" - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'quay'@'127.0.0.1';" - cd quay-pull-request - PYTHONPATH="." alembic upgrade head - PYTHONPATH="." py.test "." --ignore=endpoints/appr/test/ - service mysql stop diff --git a/ci/tasks/postgres.yaml b/ci/tasks/postgres.yaml deleted file mode 100644 index 970f576d4..000000000 --- a/ci/tasks/postgres.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -platform: linux -inputs: - - name: quay-pull-request -run: - path: /bin/sh - args: - - -c - - | - set -eux - export TEST=true - export TEST_DATABASE_URI='postgresql://quay:quay@127.0.0.1/quaytest' - export SKIP_DB_SCHEMA=true - pip install --quiet -r quay-pull-request/requirements.txt - pip install --quiet -r quay-pull-request/requirements-tests.txt - service postgresql start - su postgres -c "createuser --echo --superuser --no-password quay" - su postgres -c "psql -c \"ALTER USER quay WITH PASSWORD 'quay';\"" - su postgres -c "psql -c 'CREATE DATABASE quaytest;'" - su postgres -c "psql -c 'GRANT ALL PRIVILEGES ON DATABASE quaytest TO quay';" - cd quay-pull-request - PYTHONPATH="." alembic upgrade head - PYTHONPATH="." py.test "." --ignore=endpoints/appr/test/ - service postgresql stop diff --git a/ci/tasks/registry.yaml b/ci/tasks/registry.yaml deleted file mode 100644 index 09095a73b..000000000 --- a/ci/tasks/registry.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -platform: linux -inputs: - - name: quay-pull-request -run: - path: /bin/sh - args: - - -c - - | - set -eux - export TEST=true - pip install --quiet -r quay-pull-request/requirements.txt - pip install --quiet -r quay-pull-request/requirements-tests.txt - cd quay-pull-request - PYTHONPATH="." py.test --timeout=7200 --verbose \ - --show-count -x test/registry/registry_tests.py diff --git a/ci/tasks/style.yaml b/ci/tasks/style.yaml deleted file mode 100644 index 56ea87b4d..000000000 --- a/ci/tasks/style.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -platform: linux -inputs: - - name: quay-pull-request -run: - path: /bin/bash - args: - - -c - - | - set -eux - pip install --quiet -r quay-pull-request/requirements-dev.txt - cd quay-pull-request - export GIT_MERGE_BASED=`git merge-base origin/master HEAD` - export MODIFIED_FILES=`git diff --name-only $(GIT_MERGE_BASED) | grep -E .+\.py$ | paste -sd ' '` - if [ `yapf -d -p $(MODIFIED_FILES) | wc -l` -gt 0 ] ; then false ; else true ;fi diff --git a/ci/tasks/unit.yaml b/ci/tasks/unit.yaml deleted file mode 100644 index 57ff37c5b..000000000 --- a/ci/tasks/unit.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -platform: linux -inputs: - - name: quay-pull-request -run: - path: /bin/sh - args: - - -c - - | - set -eux - export TEST=true - pip install --quiet -r quay-pull-request/requirements.txt - pip install --quiet -r quay-pull-request/requirements-tests.txt - cd quay-pull-request - PYTHONPATH="." py.test --timeout=7200 --verbose \ - --show-count -x .