Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Travis building and uploading of the package
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
1 parent
c31967e
commit bacc1a3
Showing
7 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!docker/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "beaver"] | ||
path = beaver | ||
url = https://github.com/sociomantic-tsunami/beaver.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM sociomantictsunami/base:trusty-v2 | ||
COPY docker/ /docker-tmp | ||
RUN /docker-tmp/build && rm -fr /docker-tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM sociomantictsunami/base:xenial-v2 | ||
COPY docker/ /docker-tmp | ||
RUN /docker-tmp/build && rm -fr /docker-tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
set -xeu | ||
|
||
apt-get update | ||
apt-get -y install python2.7 python-docutils |