diff --git a/.build.yml b/.builds/docker.yml similarity index 83% rename from .build.yml rename to .builds/docker.yml index c835646..0f45793 100644 --- a/.build.yml +++ b/.builds/docker.yml @@ -4,9 +4,9 @@ packages: sources: - https://git.sr.ht/~crocmagnon/blog secrets: - - 388c4445-d732-440b-8ff5-fc5dfb46f04a - - 78118477-73c2-4805-a613-c7aab23c92a8 - - 5c948915-48c2-4542-8fc1-a5676f4d7126 + - 388c4445-d732-440b-8ff5-fc5dfb46f04a # Scaleway Docker registry password + - 78118477-73c2-4805-a613-c7aab23c92a8 # SSH config for blog + - 5c948915-48c2-4542-8fc1-a5676f4d7126 # Deploy SSH key environment: TESTING: true DEPS_LATEST: rg.fr-par.scw.cloud/crocmagnon/blog:deps-latest diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml new file mode 100644 index 0000000..d0b1765 --- /dev/null +++ b/.builds/freebsd.yml @@ -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