Browse Source

Travis pkg builds (#1119)

android-5
Stephen 8 years ago
committed by Fredrik Fornwall
parent
commit
4559aa03eb
  1. 6
      .travis.yml
  2. 4
      Gemfile
  3. 18
      Rakefile
  4. 2
      packages/ack-grep/build.sh
  5. 1
      packages/diffutils/build.sh

6
.travis.yml

@ -0,0 +1,6 @@
language: ruby
sudo: required
services:
- docker
before_script: mkdir debs && chmod 777 debs

4
Gemfile

@ -0,0 +1,4 @@
source 'https://rubygems.org'
gem 'rake'
gem 'rugged'

18
Rakefile

@ -0,0 +1,18 @@
require 'rugged'
task default: %w[build]
task :build do
repo = Rugged::Repository.new('.')
commit = repo.head.target
parent = commit.parents.first
paths = commit.diff(parent).deltas.map { |d| d.new_file[:path] }
paths = paths.map { |p| Pathname.new(p).each_filename.to_a }
# looking for packages/[package]/...
packages = paths.map { |p| p[1] if p.length > 2 and p[0] == "packages" }
packages = packages.flatten.uniq
packages.each do |package|
puts package
printf `./scripts/run-docker.sh ./build-package.sh #{package}`
end
end

2
packages/ack-grep/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://beyondgrep.com/
TERMUX_PKG_DESCRIPTION="Tool like grep optimized for programmers"
TERMUX_PKG_VERSION=2.18
# Depend on coreutils for bin/env.
# Depend on coreutils for bin/env
TERMUX_PKG_DEPENDS="perl, coreutils"
TERMUX_PKG_PLATFORM_INDEPENDENT=yes

1
packages/diffutils/build.sh

@ -3,3 +3,4 @@ TERMUX_PKG_DESCRIPTION="Programs (cmd, diff, diff3 and sdiff) related to finding
TERMUX_PKG_VERSION=3.6
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/diffutils/diffutils-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=d621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6

Loading…
Cancel
Save