forked from sjackman/linuxbrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
63 lines (63 loc) · 2.34 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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 $CIRCLE_REPOSITORY_URL
- if [ -e .git/shallow ]; then echo git fetch --unshallow; fi
- git fetch origin
- git config --global user.name LinuxbrewTestBot
- git config --global user.email [email protected]
- sudo mkdir /home/linuxbrew
- sudo chown "$USER:" /home/linuxbrew
- git clone https://github.com/Linuxbrew/brew /home/linuxbrew/.linuxbrew
- chmod 0644 Formula/*.rb
- 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
libbz2-dev
libexpat1-dev
libfreetype6-dev
libgdbm-dev
libicu-dev
libidn11-dev
libjasper-dev
libjbig-dev
libkrb5-dev
liblzma-dev
libncurses5-dev
libpcre3-dev
libtinfo-dev
libwebp-dev
libwmf-dev
libx11-dev
libxml2-dev
llvm-3.4
mysql-common
zlib1g-dev
- 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/science
&& brew tap linuxbrew/xorg
&& brew test-bot --tap=homebrew/core --keep-old
- mv *bottle*.json *.tar.gz $CIRCLE_ARTIFACTS/ || true
notify:
webhooks:
- url: https://p4142ivuwk.execute-api.us-west-2.amazonaws.com/prod/LinuxbrewTestBot?keep-old=1