forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (59 loc) · 1.71 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
62
63
64
language: ruby
matrix:
include:
- env: OSX=10.11
os: osx
osx_image: xcode8
rvm: system
- os: linux
rvm: system
sudo: required
dist: trusty
addons:
apt_packages:
- csh
- cython
- python-astropy
- python-matplotlib
- python-nose
- python-pip
- python-scipy
- python-sphinx
before_install:
- if [ -f ".git/shallow" ]; then
travis_retry git fetch --unshallow;
fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
sudo chown -R "$USER" "$(brew --repo)";
else
sudo mkdir -p /home/linuxbrew;
sudo chown "$USER:" /home/linuxbrew;
LINUXBREW=/home/linuxbrew/.linuxbrew;
git clone https://github.com/Linuxbrew/brew.git $LINUXBREW;
export PATH="$LINUXBREW/bin:$PATH";
fi
- git -C "$(brew --repo)" reset --hard origin/master;
- git -C "$(brew --repo)" clean -qxdff;
- brew update || brew update;
- mkdir -p "$(brew --repo)/Library/Taps/homebrew";
- ln -s "$TRAVIS_BUILD_DIR" "$(brew --repo)/Library/Taps/homebrew/homebrew-science";
- cd "$(brew --repo)/Library/Taps/homebrew/homebrew-science";
- for tap in homebrew/python homebrew/dupes homebrew/versions; do brew tap $tap; done;
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew tap homebrew/x11;
else
brew tap linuxbrew/xorg;
pip install pysam;
fi;
- chmod 0644 $(brew --repo)/Library/Taps/homebrew/homebrew-science/*.rb;
- export TRAVIS_BUILD_DIR="$(brew --repo)/Library/Taps/homebrew/homebrew-science";
- env | grep TRAVIS | tee /tmp/travis.env
install:
- export HOMEBREW_DEVELOPER="1"
- ulimit -n 1024
script:
- brew test-bot --tap=homebrew/science;
notifications:
email:
on_success: never
on_failure: never