Merge branch 'circle-ci'

Add Circle CI build workflow: apparently it needs to exist on master and
so can't be tested from a branch.

See #1281.
This commit is contained in:
Vadim Zeitlin
2025-06-18 17:25:06 +02:00
2 changed files with 32 additions and 5 deletions

View File

@@ -46,6 +46,31 @@ jobs:
name: deploy website
command: lftp sftp://${DEPLOY_DOCS_USER}:${DEPLOY_DOCS_PASS}@${DEPLOY_DOCS_HOST} -e "set ftp:ssl-force true; set ftp:ssl-protect-data true; set ssl:verify-certificate no; set sftp:auto-confirm yes; mirror -v -R ./www ${DEPLOY_DOCS_BASE}; quit"
build-fedora:
docker:
- image: fedora
parameters:
backend:
type: string
description: 'Database backend to use for the build'
environment:
SOCI_CI: true
SOCI_CI_BACKEND: << parameters.backend >>
steps:
- checkout
- run:
name: Install dependencies
command: ./scripts/ci/install.sh
- run:
name: Prepare for build
command: ./scripts/ci/before_build.sh
- run:
name: Build
command: ./scripts/ci/build.sh
- run:
name: Test
command: ./scripts/ci/test.sh
workflows:
version: 2
website-workflow:
@@ -69,7 +94,9 @@ workflows:
branches:
only:
- master
notify:
webhooks:
- url: https://webhooks.gitter.im/e/9ff4be3a6f08f55106e2
build-workflow:
jobs:
- build-fedora:
matrix:
parameters:
backend: [ 'postgresql', 'mysql', 'odbc', 'sqlite3' ]

View File

@@ -10,7 +10,7 @@ env:
WITH_BOOST: OFF
task:
skip: "changesIncludeOnly('.github/workflows/*')"
skip: "changesIncludeOnly('.github/workflows/*', '.circleci/config.yml')"
matrix:
- name: Cirrus CI / Empty FreeBSD
env: