diff --git a/.snapcraft/travis_snapcraft.cfg b/.snapcraft/travis_snapcraft.cfg deleted file mode 100644 index dcc944a6..00000000 Binary files a/.snapcraft/travis_snapcraft.cfg and /dev/null differ diff --git a/.travis.yml b/.travis.yml index 9671d0ee..420b6682 100644 --- a/.travis.yml +++ b/.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" diff --git a/snap/snap-multiarch.sh b/snap/snap-multiarch.sh deleted file mode 100755 index 8ad24e35..00000000 --- a/snap/snap-multiarch.sh +++ /dev/null @@ -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 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml deleted file mode 100644 index 0d8e87fa..00000000 --- a/snap/snapcraft.yaml +++ /dev/null @@ -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