commit
ecef9ea762
Binary file not shown.
18
.travis.yml
18
.travis.yml
|
@ -56,21 +56,3 @@ jobs:
|
|||
- make install
|
||||
- docker pull ipfs/go-ipfs
|
||||
- make test_sharness && make clean_sharness
|
||||
- stage: "Snapcraft deployment stage (Stable)"
|
||||
name: "Deploy Snapcraft"
|
||||
if: (NOT type IN (pull_request)) AND (fork = false) AND (tag =~ ^v\d+\.\d+\.\d+$)
|
||||
script:
|
||||
- openssl aes-256-cbc -K $encrypted_5a1cb914c6c9_key -iv $encrypted_5a1cb914c6c9_iv -in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
|
||||
- docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq && cd $(pwd) && ./snap/snap-multiarch.sh edge" # should be stable
|
||||
- stage: "Snapcraft deployment stage (Candidate)"
|
||||
name: "Deploy Snapcraft"
|
||||
if: (NOT type IN (pull_request)) AND (fork = false) AND (tag =~ ^v\d+\.\d+\.\d+-rc\d+$)
|
||||
script:
|
||||
- openssl aes-256-cbc -K $encrypted_5a1cb914c6c9_key -iv $encrypted_5a1cb914c6c9_iv -in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
|
||||
- docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq && cd $(pwd) && ./snap/snap-multiarch.sh edge" # should be candidate
|
||||
- stage: "Snapcraft deployment stage (Edge)"
|
||||
name: "Deploy Snapcraft"
|
||||
if: (NOT type IN (pull_request)) AND (branch = master) AND (fork = false) AND (tag IS NOT present)
|
||||
script:
|
||||
- openssl aes-256-cbc -K $encrypted_5a1cb914c6c9_key -iv $encrypted_5a1cb914c6c9_iv -in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
|
||||
- docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq && cd $(pwd) && ./snap/snap-multiarch.sh edge"
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Build the ipfs-cluster snaps and push them to the store.
|
||||
|
||||
set -ev
|
||||
|
||||
release=$1
|
||||
|
||||
snap() {
|
||||
export SNAP_ARCH_TRIPLET=$1
|
||||
export TARGET_GOARCH=$2
|
||||
target_arch=$3
|
||||
release=$4
|
||||
echo "Building and pushing snap:"
|
||||
echo "SNAP_ARCH_TRIPLET=${SNAP_ARCH_TRIPLET}"
|
||||
echo "TARGET_GOARCH=${TARGET_GOARCH}"
|
||||
echo "target_arch=${target_arch}"
|
||||
echo "release=${release}"
|
||||
|
||||
snapcraft clean
|
||||
snapcraft --target-arch $target_arch
|
||||
snapcraft push ipfs-cluster*${target_arch}.snap --release $release
|
||||
}
|
||||
|
||||
snap x86_64-linux-gnu amd64 amd64 $release
|
||||
snap arm-linux-gnueabihf arm armhf $release
|
||||
snap aarch64-linux-gnu arm64 arm64 $release
|
|
@ -1,36 +0,0 @@
|
|||
name: ipfs-cluster
|
||||
version: git
|
||||
summary: Collective pinning and composition for IPFS
|
||||
description: |
|
||||
ipfs-cluster allows to replicate content (by pinning) in multiple IPFS nodes.
|
||||
|
||||
confinement: strict
|
||||
|
||||
apps:
|
||||
service:
|
||||
command: ipfs-cluster-service
|
||||
plugs: [home, network, network-bind]
|
||||
aliases: [ipfs-cluster-service]
|
||||
ctl:
|
||||
command: ipfs-cluster-ctl
|
||||
plugs: [network]
|
||||
aliases: [ipfs-cluster-ctl]
|
||||
|
||||
parts:
|
||||
ipfs-cluster:
|
||||
source: .
|
||||
plugin: nil
|
||||
build-packages: [make, wget]
|
||||
prepare: |
|
||||
mkdir -p ../go/src/github.com/ipfs/ipfs-cluster
|
||||
cp -R . ../go/src/github.com/ipfs/ipfs-cluster
|
||||
build: |
|
||||
env GOPATH=$(pwd)/../go CC=$SNAP_ARCH_TRIPLET-gcc CXX=$SNAP_ARCH_TRIPLET-g++ CGO_ENABLED=1 GOARCH=$TARGET_GOARCH make -C ../go/src/github.com/ipfs/ipfs-cluster install
|
||||
install: |
|
||||
mkdir $SNAPCRAFT_PART_INSTALL/bin
|
||||
for file in $(find ../go/bin/ -type f); do
|
||||
mv $file $SNAPCRAFT_PART_INSTALL/bin/
|
||||
done
|
||||
after: [go]
|
||||
go:
|
||||
source-tag: go1.11
|
Loading…
Reference in New Issue
Block a user