tweak for making CI happy

This commit is contained in:
holger krekel
2023-12-10 18:40:09 +01:00
parent 4615df2e3b
commit b3fdebf8df
4 changed files with 20 additions and 15 deletions

View File

@@ -10,9 +10,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: run chatmaild tests - name: run chatmaild tests
working-directory: chatmaild working-directory: chatmaild
run: pipx run tox run: pipx run tox
- name: run deploy-chatmail offline tests - name: run deploy-chatmail offline tests
working-directory: deploy-chatmail working-directory: deploy-chatmail
run: pipx run tox run: pipx run tox
@@ -21,19 +23,13 @@ jobs:
run: pipx run tox run: pipx run tox
scripts: scripts:
name: chatmail script invocations name: cmdeploy invocations
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: create venv - name: initenv
run: python3 -m venv run: scripts/initenv.sh
- name: install packages into venv - name: initialize with chatmail domain
run: venv/bin/pip install chatmaild deploy_chatmail
- name: initialize
run: venv/bin/cmdeploy init chat.example.org run: venv/bin/cmdeploy init chat.example.org
- name: initialize a testrun domain
run: venv/bin/cmdeploy init c4.testrun.org

View File

@@ -25,14 +25,12 @@ DNS domain name (FQDN), for example `chat.example.org`.
ssh root@CHATMAIL_DOMAIN ssh root@CHATMAIL_DOMAIN
``` ```
2. Install the `cmdeploy` binary in a Python virtual environment: 2. Install the `cmdeploy` command in a virtualenv
``` ```
python3 -m venv venv source scripts/initenv.sh
source venv/bin/activate
pip install -e deploy-chatmail -e chatmaild
``` ```
3. Create chatmail configuration file `chatmail.ini`: 3. Create chatmail configuration file `chatmail.ini`:
``` ```

View File

@@ -1 +1,3 @@
include src/chatmaild/*.f
include src/chatmaild/ini/*.ini.f
include src/chatmaild/ini/*.ini include src/chatmaild/ini/*.ini

9
scripts/initenv.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
python3 -m venv venv
venv/bin/pip install -e deploy-chatmail
venv/bin/pip install -e chatmaild
source venv/bin/activate
echo activated 'venv' python virtualenv environment containing "cmdeploy" tool