mirror of
https://github.com/containers/skopeo.git
synced 2025-07-01 00:52:26 +00:00
Merge pull request #382 from errm/errm/automate-osx-build
Adds automated build for OSX
This commit is contained in:
commit
75811bd4b1
12
.travis.yml
12
.travis.yml
@ -1,10 +1,18 @@
|
|||||||
sudo: required
|
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: linux
|
||||||
|
sudo: required
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
- os: osx
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
|
install:
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gpgme ; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make check
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then hack/travis_osx.sh ; fi
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make check ; fi
|
||||||
|
3
Makefile
3
Makefile
@ -34,7 +34,8 @@ MANPAGES_MD = $(wildcard docs/*.md)
|
|||||||
|
|
||||||
BTRFS_BUILD_TAG = $(shell hack/btrfs_tag.sh)
|
BTRFS_BUILD_TAG = $(shell hack/btrfs_tag.sh)
|
||||||
LIBDM_BUILD_TAG = $(shell hack/libdm_tag.sh)
|
LIBDM_BUILD_TAG = $(shell hack/libdm_tag.sh)
|
||||||
LOCAL_BUILD_TAGS = $(BTRFS_BUILD_TAG) $(LIBDM_BUILD_TAG)
|
DARWIN_BUILD_TAG = $(shell hack/darwin_tag.sh)
|
||||||
|
LOCAL_BUILD_TAGS = $(BTRFS_BUILD_TAG) $(LIBDM_BUILD_TAG) $(DARWIN_BUILD_TAG)
|
||||||
BUILDTAGS += $(LOCAL_BUILD_TAGS)
|
BUILDTAGS += $(LOCAL_BUILD_TAGS)
|
||||||
|
|
||||||
# make all DEBUG=1
|
# make all DEBUG=1
|
||||||
|
5
hack/darwin_tag.sh
Executable file
5
hack/darwin_tag.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $(uname) == "Darwin" ]; then
|
||||||
|
echo "containers_image_ostree_stub"
|
||||||
|
fi
|
10
hack/travis_osx.sh
Executable file
10
hack/travis_osx.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export GOPATH=$(pwd)/_gopath
|
||||||
|
_projectatomic="${GOPATH}/src/github.com/projectatomic"
|
||||||
|
mkdir -vp ${_projectatomic}
|
||||||
|
ln -vsf $(pwd) ${_projectatomic}/skopeo
|
||||||
|
|
||||||
|
cd ${_projectatomic}/skopeo
|
||||||
|
make validate-local test-unit-local binary-local
|
Loading…
Reference in New Issue
Block a user