Make several changes in the release and CI setup. (#509)

* Make several changes in the release and CI setup.

- Remove .travis/ directory completely.
- Update deploy.py script to tag with major.minor version
  and remove the v in the tag which it didn't before.
- Fix the CircleCI cron setup.

* Update config.yml

* Use buildkit if possible.

* Use machine executor which supports buildkit.

* Remove setup docker step

* Use newer image.

* Use buildkit syntax for caching pip dependencies.

This should significantly speed up the build process by not having
to build python wheels multiple times.

* Use plain output from buildkit

* Make deploy script work with Python 2.7

Also cache python deps across builds.

* Fix more python3 things

* Install dependency in python3
This commit is contained in:
Abhilash Raj
2021-09-17 11:10:27 -07:00
committed by GitHub
parent 8753c02ba7
commit fd837d04f1
11 changed files with 75 additions and 164 deletions

View File

@@ -2,23 +2,30 @@ version: '2'
jobs:
build:
docker:
- image: circleci/python:3.6-stretch-browsers
machine:
image: ubuntu-2004:202010-01
docker_layer_caching: true
environment:
REGISTRY: QUAY
QUAY_URL: quay.io
DOCKER_BUILDKIT: 1
BUILDKIT_PROGRESS: plain
steps:
- checkout
- setup_remote_docker
- run:
name: Setup Environment
command: source setup_env.sh
- run:
name: Install Docker Compose
command: sudo pip install docker-compose
name: Install Python dependencies
command: python3 -m pip install packaging
- restore_cache:
keys:
- python-deps-cache-v1
- run:
name: Building Container Images
command: ./build.sh
- save_cache:
key: python-deps-cache-v1
paths:
- /root/.cache
- run:
name: Generate Tests
command: bash tests/generate_tests.sh
@@ -34,7 +41,7 @@ jobs:
command: bash tests/test.sh
- deploy:
command: |
python .travis/deploy.py
python3 deploy.py
workflows:
version: 2
@@ -51,7 +58,7 @@ workflows:
cron: "0 0 * * *"
filters:
branches:
only: master
only: main
jobs:
- build:
context: org-global