Add FreeBSD build

This commit is contained in:
Gabriel Augendre 2020-11-12 11:47:29 +01:00
parent 1bec6742f8
commit ae3912299b
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
2 changed files with 32 additions and 3 deletions

View file

@ -4,9 +4,9 @@ packages:
sources: sources:
- https://git.sr.ht/~crocmagnon/blog - https://git.sr.ht/~crocmagnon/blog
secrets: secrets:
- 388c4445-d732-440b-8ff5-fc5dfb46f04a - 388c4445-d732-440b-8ff5-fc5dfb46f04a # Scaleway Docker registry password
- 78118477-73c2-4805-a613-c7aab23c92a8 - 78118477-73c2-4805-a613-c7aab23c92a8 # SSH config for blog
- 5c948915-48c2-4542-8fc1-a5676f4d7126 - 5c948915-48c2-4542-8fc1-a5676f4d7126 # Deploy SSH key
environment: environment:
TESTING: true TESTING: true
DEPS_LATEST: rg.fr-par.scw.cloud/crocmagnon/blog:deps-latest DEPS_LATEST: rg.fr-par.scw.cloud/crocmagnon/blog:deps-latest

29
.builds/freebsd.yml Normal file
View file

@ -0,0 +1,29 @@
image: freebsd/12.x
packages:
- python38
- py38-sqlite3
- jpeg-turbo
sources:
- https://git.sr.ht/~crocmagnon/blog
secrets:
- 78118477-73c2-4805-a613-c7aab23c92a8 # SSH config for blog
- 5c948915-48c2-4542-8fc1-a5676f4d7126 # Deploy SSH key
environment:
TESTING: true
POETRY_VERSION: 1.1.4
tasks:
- install_poetry: |
mkdir $HOME/bin
ln -s $(which python3.8) $HOME/bin/python
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
echo "source $HOME/.poetry/env" >> ~/.buildenv
- install_deps: |
cd blog
poetry install -n
- test: |
cd blog
poetry run ./docker/runtests.sh
triggers:
- action: email
condition: failure
to: Gabriel Augendre <gabriel@augendre.info>