Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more distros built via docker #71

Merged
merged 2 commits into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ matrix:
dist: trusty
sudo: required
env: RID=debian.9-x64
- os: linux
dist: trusty
sudo: required
env: RID=alpine-x64
- os: osx
env: RID=osx

Expand All @@ -37,8 +41,6 @@ before_install:

install: true

script:
- if [[ $RID == "osx" ]] || [[ $RID == "linux-x64" ]]; then ./build.libgit2.sh ; fi
- if [[ $RID != "osx" ]] && [[ $RID != "linux-x64" ]]; then ./dockerbuild.sh ; fi
script: if [[ $RID == "osx" ]]; then ./build.libgit2.sh ; else ./dockerbuild.sh ; fi

after_success: ./uploadbinaries.sh
7 changes: 7 additions & 0 deletions Dockerfile.alpine-x64
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.7
WORKDIR /nativebinaries
COPY . /nativebinaries/

RUN apk add --no-cache bash build-base cmake curl-dev openssl-dev

CMD ["/bin/bash", "-c", "./build.libgit2.sh"]
7 changes: 7 additions & 0 deletions Dockerfile.linux-x64
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:14.04
WORKDIR /nativebinaries
COPY . /nativebinaries/

RUN apt update && apt -y install cmake libcurl4-openssl-dev libssl-dev pkg-config

CMD ["/bin/bash", "-c", "./build.libgit2.sh"]