Skip to content

Commit

Permalink
Build bottles on Travis-CI and deploy to Bintray (#114)
Browse files Browse the repository at this point in the history
* Build and upload bottles from master branch builds
* Fix brew-audit for yoda formula
  • Loading branch information
davidchall authored Oct 20, 2017
1 parent fcced4d commit 575c347
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
24 changes: 21 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ cache:

# https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
os: osx
env: OSX=10.12
osx_image: xcode8.3
matrix:
include:
- osx_image: xcode9.1
env: OSX=10.12
- osx_image: xcode8
env: OSX=10.11
- osx_image: xcode6.4
env: OSX=10.10

before_install:
- export TRAVIS_COMMIT="$(git rev-parse --verify -q HEAD)"
Expand All @@ -24,10 +30,22 @@ before_install:
- rm -rf "$HOMEBREW_TAP_DIR"
- ln -s "$PWD" "$HOMEBREW_TAP_DIR"
- export HOMEBREW_DEVELOPER="1"
- export HOMEBREW_BINTRAY_USER="davidchall"
- export TAP_BOTTLE_DOMAIN="https://dl.bintray.com/davidchall"
- ulimit -n 1024

script:
- brew test-bot
- brew tap davidchall/test-bot
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
brew test-bot --ci-testing;
else
brew test-bot --ci-pr;
fi

after_success:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
brew test-bot --ci-upload --git-name=davidchall --git-email=dhcrawley@gmail.com --bintray-org=davidchall;
fi

notifications:
email:
Expand Down
9 changes: 4 additions & 5 deletions Formula/yoda.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Yoda < Formula
desc "Yet more Objects for Data Analysis"
homepage "http://yoda.hepforge.org"
url "http://www.hepforge.org/archive/yoda/YODA-1.6.7.tar.gz"
homepage "https://yoda.hepforge.org"
url "https://www.hepforge.org/archive/yoda/YODA-1.6.7.tar.gz"
sha256 "9fbdb8e9b2951ee6b984b2d5350b0a5a9c93c6f4a70c51dd77daa87336753cf6"

head do
Expand All @@ -10,12 +10,11 @@ class Yoda < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "cython" => :python
depends_on "cython" => :build
end

option "with-test", "Test during installation"

depends_on :python
depends_on "root" => :optional
depends_on "numpy" => :optional
depends_on "homebrew/science/matplotlib" => :optional
Expand All @@ -42,6 +41,6 @@ def install
end

test do
system "yoda-config", "--version"
system bin/"yoda-config", "--version"
end
end

0 comments on commit 575c347

Please sign in to comment.