mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
tweak for making CI happy
This commit is contained in:
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
@@ -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
|
|
||||||
|
|||||||
@@ -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`:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -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
9
scripts/initenv.sh
Executable 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
|
||||||
Reference in New Issue
Block a user