forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.22 KB
/
wheezy_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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'