Skip to content

Commit

Permalink
Use Makefile for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed May 31, 2023
1 parent 98c7404 commit 0758fb4
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 23 deletions.
20 changes: 0 additions & 20 deletions .ci/run_ci.sh

This file was deleted.

15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: CI
run: |
"$GITHUB_WORKSPACE/.ci/run_ci.sh"
- name: lint
run: make lint
- name: unit
run: make unit
- name: geos
run: make geos
- name: pgscan
run: make pgscan
- name: cmppg
run: make cmppg
- name: cmpgeos
run: make cmpgeos
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.2
with:
Expand Down
46 changes: 46 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.PHONY: lint
lint:
docker-compose -p sf-lint -f ./.ci/docker-compose-lint.yml up --abort-on-container-exit

.PHONY: unit
unit:
docker-compose -p sf-unit -f ./.ci/docker-compose-unit.yml up --abort-on-container-exit

.PHONY: pgscan
pgscan:
docker-compose -p sf-pgscan -f ./.ci/docker-compose-pgscan.yml up --abort-on-container-exit

.PHONY: cmppg
cmppg:
docker-compose -p sf-cmppg -f ./.ci/docker-compose-cmppg.yml up --abort-on-container-exit

.PHONY: cmpgeos
cmpgeos:
docker-compose -p sf-cmpgeos -f ./.ci/docker-compose-cmpgeos.yml up --abort-on-container-exit

.PHONY: geos-3.11.2
geos-3.11.2:
env GEOS_VERSION=3.11.2 docker-compose -p sf-geos-3-11-2 -f ./.ci/docker-compose-geos.yml up --abort-on-container-exit

.PHONY: geos-3.10.5
geos-3.10.5:
env GEOS_VERSION=3.10.5 docker-compose -p sf-geos-3-10-5 -f ./.ci/docker-compose-geos.yml up --abort-on-container-exit

.PHONY: geos-3.9.4
geos-3.9.4:
env GEOS_VERSION=3.9.4 docker-compose -p sf-geos-3-9-4 -f ./.ci/docker-compose-geos.yml up --abort-on-container-exit

.PHONY: geos-3.8.3
geos-3.8.3:
env GEOS_VERSION=3.8.3 docker-compose -p sf-geos-3-8-3 -f ./.ci/docker-compose-geos.yml up --abort-on-container-exit

.PHONY: geos-3.7.5
geos-3.7.5:
env GEOS_VERSION=3.7.5 docker-compose -p sf-geos-3-7-5 -f ./.ci/docker-compose-geos.yml up --abort-on-container-exit

.PHONY: geos
geos: geos-3.11.2
geos: geos-3.10.5
geos: geos-3.9.4
geos: geos-3.8.3
geos: geos-3.7.5

0 comments on commit 0758fb4

Please sign in to comment.