forked from sjackman/linuxbrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
86 lines (86 loc) · 2.92 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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 -p /home/linuxbrew/.linuxbrew/bin
- sudo chown -R "$USER:" /home/linuxbrew
- git clone https://github.com/Linuxbrew/brew /home/linuxbrew/.linuxbrew/Homebrew
- ln -s ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/
- chmod 0644 Formula/*.rb
- mkdir -p /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew
- rsync -az $HOME/$CIRCLE_PROJECT_REPONAME /home/linuxbrew/.linuxbrew/Homebrew/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
libffi-dev
libfontconfig1-dev
libfreetype6-dev
libgcrypt11-dev
libgdbm-dev
libgl1-mesa-dev
libgmp-dev
libicu-dev
libidn11-dev
libjack-dev
libjack-jackd2-0
libjack-jackd2-dev
libjack0
libjasper-dev
libjbig-dev
libkrb5-dev
libldap2-dev
libltdl-dev
liblzma-dev
liblzo2-dev
libmagic-dev
libncurses5-dev
libossp-uuid-dev
libpcre3-dev
libpq-dev
libsasl2-dev
libsqlite0-dev
libsqlite3-dev
libtinfo-dev
libwebp-dev
libwmf-dev
libx11-dev
libxml2-dev
libyaml-dev
llvm-3.4
mysql-common
unixodbc-dev
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
: timeout: 7200
- 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