Skip to content

Commit

Permalink
Add Travis building and uploading of the package
Browse files Browse the repository at this point in the history
Now Travis CI will automatically build the package and when tagged, they
will be automatically uploaded to Bintray.

* beaver ()...v0.1.1(2c6caef) (1 commits)
  > Bugfix: Change TRAVIS_SLUG to TRAVIS_REPO_SLUG

Fixes #217.
  • Loading branch information
leandro-lucarella-sociomantic committed Jul 6, 2017
1 parent c31967e commit bacc1a3
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
*
!docker/
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "beaver"]
path = beaver
url = https://github.com/sociomantic-tsunami/beaver.git
34 changes: 34 additions & 0 deletions .travis.yml
@@ -0,0 +1,34 @@
# We will use docker to set up out environment, so don't use any particular
# language in Travis itself
language: generic

# Enable docker
sudo: required
services:
- docker

# Disable automatic submodule fetching (it's done recursively)
git:
submodules: false

# Do a shallow submodule fetch
before_install: git submodule update --init

env:
global:
# Make sure beaver is in the PATH
- PATH="$(git config -f .gitmodules submodule.beaver.path)/bin:$PATH"
matrix:
- DIST=trusty
- DIST=xenial

install: beaver install

script: beaver make PYTHON=python2.7 all deb

deploy:
provider: script
script: beaver bintray upload -d sociomantic-tsunami/tools/git-hub deb/*.deb
skip_cleanup: true
on:
tags: true
3 changes: 3 additions & 0 deletions Dockerfile.trusty
@@ -0,0 +1,3 @@
FROM sociomantictsunami/base:trusty-v2
COPY docker/ /docker-tmp
RUN /docker-tmp/build && rm -fr /docker-tmp
3 changes: 3 additions & 0 deletions Dockerfile.xenial
@@ -0,0 +1,3 @@
FROM sociomantictsunami/base:xenial-v2
COPY docker/ /docker-tmp
RUN /docker-tmp/build && rm -fr /docker-tmp
1 change: 1 addition & 0 deletions beaver
Submodule beaver added at 2c6cae
5 changes: 5 additions & 0 deletions docker/build
@@ -0,0 +1,5 @@
#!/bin/sh
set -xeu

apt-get update
apt-get -y install python2.7 python-docutils

0 comments on commit bacc1a3

Please sign in to comment.