-
Notifications
You must be signed in to change notification settings - Fork 198
/
.travis.yml
61 lines (56 loc) · 1.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: ruby
matrix:
include:
- env: OSX=10.11
os: osx
osx_image: osx10.11
rvm: 2.7.1
- env: OSX=10.10
os: osx
osx_image: xcode7
rvm: 2.7.1
- env: OSX=10.9
os: osx
osx_image: beta-xcode6.2
rvm: 2.7.1
allow_failures:
- os: linux
dist: bionic
rvm: 2.7.1
env:
global:
- HOMEBREW_DEVELOPER=1
- HOMEBREW_VERBOSE=1
before_install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export PATH="~/.linuxbrew/bin:~/.linuxbrew/sbin:$PATH";
export HOME=/home/linuxbrew;
export LINUXBREW=$HOME/.linuxbrew;
export HOMEBREW_DEVELOPER=1
export HOMEBREW_FORCE_VENDOR_RUBY=1
export HOMEBREW_NO_AUTO_UPDATE=1
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
#- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
# brew test-bot --ci-testing;
# else
# brew test-bot --ci-pr;
# fi
notifications:
email: never