Skip to content

Commit

Permalink
Employ builds.sr.ht for Alpine, Fedora and FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
McSinyx committed Dec 6, 2020
1 parent 9cfd4b9 commit f822cc5
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .builds/alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
image: alpine/latest
packages:
- curl
- gcc
- libffi-dev
- musl-dev
- openssl-dev
- python3-dev
sources:
- https://github.com/python-trio/trio
tasks:
- test: |
python3 -m venv venv
source venv/bin/activate
cd trio
CI_BUILD_ID=$JOB_ID CI_BUILD_URL=$JOB_URL ./ci.sh
environment:
CODECOV_TOKEN: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
JOB_NAME: Alpine
14 changes: 14 additions & 0 deletions .builds/fedora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
image: fedora/rawhide
packages:
- python3-pip
sources:
- https://github.com/python-trio/trio
tasks:
- test: |
python3 -m venv venv
source venv/bin/activate
cd trio
CI_BUILD_ID=$JOB_ID CI_BUILD_URL=$JOB_URL ./ci.sh
environment:
CODECOV_TOKEN: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
JOB_NAME: Fedora
17 changes: 17 additions & 0 deletions .builds/freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
image: freebsd/latest
packages:
- curl
- python38
- py38-sqlite3
sources:
- https://github.com/python-trio/trio
tasks:
- setup: sudo ln -s /usr/local/bin/bash /bin/bash
- test: |
python3.8 -m venv venv
source venv/bin/activate
cd trio
CI_BUILD_ID=$JOB_ID CI_BUILD_URL=$JOB_URL ./ci.sh
environment:
CODECOV_TOKEN: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
JOB_NAME: FreeBSD
1 change: 1 addition & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -ex -o pipefail

# Log some general info about the environment
uname -a
env | sort

if [ "$JOB_NAME" = "" ]; then
Expand Down

0 comments on commit f822cc5

Please sign in to comment.