forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (45 loc) · 1.13 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
language: ruby
os: linux
rvm: 2.0.0
sudo: required
dist: trusty
addons:
apt_packages:
- csh
- cython
- python-astropy
- python-matplotlib
- python-nose
- python-pip
- python-scipy
- python-sphinx
before_install:
- export TRAVIS_COMMIT="$(git rev-parse --verify -q HEAD)"
- if [ -f ".git/shallow" ]; then
travis_retry git fetch --unshallow;
fi
- sudo mkdir -p /home/linuxbrew
- sudo chown "$USER" /home/linuxbrew
- LINUXBREW=/home/linuxbrew/.linuxbrew
- git clone --depth=1 https://github.com/Linuxbrew/brew.git "$LINUXBREW"
- export PATH="$LINUXBREW/bin:$PATH"
- HOMEBREW_TAP_DIR="$(brew --repo "$TRAVIS_REPO_SLUG")"
- rm -rf "$HOMEBREW_TAP_DIR"
- mkdir -p "$(dirname "$HOMEBREW_TAP_DIR")"
- ln -s "$PWD" "$HOMEBREW_TAP_DIR"
- export HOMEBREW_DEVELOPER="1"
- env | grep TRAVIS | tee /tmp/travis.env
- export HOMEBREW_DEVELOPER="1"
- ulimit -n 1024
# Fix incorrect file permissions (664)
- chmod 0644 *.rb
- umask 022
- brew tap linuxbrew/xorg
install:
- pip install pysam
script:
- brew test-bot
notifications:
email:
on_success: never
on_failure: always