forked from openresty/homebrew-brew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.14 KB
/
.travis.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
language: ruby
matrix:
include:
- os: osx
osx_image: xcode8.2
rvm: system
- os: linux
rvm: 2.0.0
env:
global:
- HOMEBREW_DEVELOPER=1
before_install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export PATH="~/.linuxbrew/bin:~/.linuxbrew/sbin:$PATH";
export HOME=/home/linuxbrew;
export LINUXBREW=$HOME/.linuxbrew;
sudo apt-get -qq update;
sudo mkdir $HOME;
sudo chown "$USER:" $HOME;
mkdir $LINUXBREW;
curl -L https://github.com/Linuxbrew/brew/tarball/master | tar xz -m --strip 1 -C $LINUXBREW;
fi
- brew update || brew update
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- mkdir -p $(brew --repo)/Library/Taps/denji
- ln -s $PWD $(brew --repo)/Library/Taps/denji/homebrew-nginx
- cd $(brew --repo)/Library/Taps/denji/homebrew-nginx
- export TRAVIS_BUILD_DIR="$(brew --repo)/Library/Taps/denji/homebrew-nginx"
- ulimit -n 1024
# Fix linux error: Incorrect file permissions (664)
- chmod 0644 Formula/*.rb
- umask 022
script:
- brew test-bot --no-bottle
notifications:
email:
on_success: never
on_failure: always