forked from sjackman/linuxbrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
42 lines (42 loc) · 2.04 KB
/
circle.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
34
35
36
37
38
39
40
41
42
machine:
environment:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_VERBOSE: 1
HOMEBREW_VERBOSE_USING_DOTS: 1
checkout:
post:
- git remote set-url origin https://github.com/Linuxbrew/homebrew-core
- git fetch origin
- git checkout master
- git reset --hard origin/master
- git config user.name LinuxbrewTestBot
- git config user.email [email protected]
- sudo mkdir /home/linuxbrew
- sudo chown "$USER:" /home/linuxbrew
- git clone --depth=1 https://github.com/Linuxbrew/brew.git /home/linuxbrew/.linuxbrew
- mkdir -p /home/linuxbrew/.linuxbrew/Library/Taps/homebrew
- rsync -az $HOME/$CIRCLE_PROJECT_REPONAME /home/linuxbrew/.linuxbrew/Library/Taps/homebrew/
dependencies:
override:
- sudo apt-get update
- sudo apt-get install curl g++ git libperl-dev libxml-parser-perl libxml-sax-perl make python-dev ruby2.0 ruby2.0-dev subversion wbritish
- printf "yes\nlocal::lib\nyes\nyes\no conf prerequisites_policy follow\no conf build_requires_install_policy yes\no conf commit\n" | cpan # https://github.com/Linuxbrew/homebrew-core/pull/1621#issue-202644521
- DEBIAN_FRONTEND=noninteractive sudo apt-get autoremove -y --purge libblas-dev libicu-dev libjasper-dev libjbig-dev libncurses5-dev libpcre3-dev libtinfo-dev libwebp-dev libwmf-dev libxml2-dev llvm-3.4 mysql-common
- sudo ln -sf ruby2.0 /usr/bin/ruby
- sudo ln -sf gem2.0 /usr/bin/gem
- sudo ln -sf /usr/lib/x86_64-linux-gnu/libruby-2.0.so /usr/lib/x86_64-linux-gnu/libruby.so
- sudo rm -rf /opt/circleci /usr/local/*
test:
override:
- umask 022;
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH";
eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)";
brew install patchelf
&& brew tap homebrew/dupes
&& brew tap linuxbrew/xorg
&& brew test-bot --tap=homebrew/core --keep-old
- mv *.json *.tar.gz $CIRCLE_ARTIFACTS/ || true
notify:
webhooks:
- url: https://p4142ivuwk.execute-api.us-west-2.amazonaws.com/prod/LinuxbrewTestBot?keep-old=1