forked from brew-stuff/homebrew-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 1.18 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
language: ruby
matrix:
include:
- os: osx
osx_image: xcode8.2
rvm: system
- os: linux
rvm: 2.3.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;
export HOMEBREW_DEVELOPER=1
export HOMEBREW_FORCE_VENDOR_RUBY=1
export HOMEBREW_NO_AUTO_UPDATE=1
sudo apt-get -qq update;
sudo apt-get install -y texinfo;
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;
brew tap linuxbrew/xorg;
fi
- brew update || brew update
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- mkdir -p $(brew --repo)/Library/Taps/dunn
- ln -s $PWD $(brew --repo)/Library/Taps/dunn/homebrew-emacs
- 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