Skip to content

Commit

Permalink
Merge pull request #1811 from McSinyx/sourcehut
Browse files Browse the repository at this point in the history
Migrate Alpine, Fedora, FreeBSD CIs to SourceHut
  • Loading branch information
pquentin authored Dec 8, 2020
2 parents 03d14bc + f822cc5 commit 469a571
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 362 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
18 changes: 0 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,3 @@ jobs:
env:
# Should match 'name:' up above
JOB_NAME: 'macOS (${{ matrix.python }})'

Alpine:
name: 'Alpine'
timeout-minutes: 10
runs-on: 'ubuntu-latest'
container: 'alpine'
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install bash
run: apk add --no-cache bash
- name: Run tests
run: ./ci.sh
env:
# Should match 'name:' up above
JOB_NAME: 'Alpine'
22 changes: 0 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,6 @@ jobs:
env: PYPY_NIGHTLY_BRANCH=py3.6
- language: generic
env: PYPY_NIGHTLY_BRANCH=py3.7
# Qemu tests are also slow
# FreeBSD:
- language: generic
env:
- "JOB_NAME='FreeBSD 12.1-RELEASE, full VM'"
- "FREEBSD_INSTALLER_ISO_XZ=https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/12.1/FreeBSD-12.1-RELEASE-amd64-disc1.iso.xz"
# Increment this each time you change the image build code in
# ci.sh and want to intentionally bust the cache.
- "CACHE_GEN=3"
cache:
directories:
- travis-cache
# More recent Ubuntu:
# The unique thing this provides is testing on the given distro's
# kernel, which is important when we use new kernel features. This
# is also good for testing the latest openssl etc., and getting
# early warning of any issues that might happen in the next Ubuntu
# LTS.
- language: generic
env:
- "JOB_NAME='Fedora 32, full VM'"
- "LINUX_VM_IMAGE=https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/x86_64/images/Fedora-Cloud-Base-32-1.6.x86_64.qcow2"

- python: 3.6.1 # earliest 3.6 version available on Travis
# https://github.com/pypa/setuptools/issues/2350
Expand Down
Loading

0 comments on commit 469a571

Please sign in to comment.