homebrew-core/.github/workflows/wheezy_tests.yml

34 lines
1.2 KiB
YAML

name: Wheezy CI
on:
pull_request:
paths:
- "Formula/patchelf.rb"
- "Formula/binutils.rb"
jobs:
wheezy_tests:
if: github.repository == 'Homebrew/homebrew-core' && github.event_name == 'pull_request' && ! contains(github.event.pull_request.labels.*.name, 'CI-syntax-only')
runs-on: ubuntu-latest
env:
HOMEBREW_CORE_GIT_REMOTE: ${{github.event.repository.html_url}}
HOMEBREW_FORCE_HOMEBREW_ON_LINUX: 1
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup bottles folder
run: |
rm -rf ~/bottles
mkdir ~/bottles
- name: Run Docker
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_DEVELOPER: 1
HOMEBREW_ON_DEBIAN7: 1
HOMEBREW_CURL_PATH: "/usr/bin/curl"
HOMEBREW_GIT_PATH: "/usr/bin/git"
run: |
set -eux
docker pull homebrew/debian7:latest
docker run -v /home/linuxbrew:/home/linuxbrew -v ~/bottles:/home/linuxbrew/bottles -u root --env-file <(env | grep 'HOMEBREW\|GITHUB') homebrew/debian7:latest bash -c 'cd /root && brew test-bot --only-formulae --build-from-source'