diff --git a/.travis.yml b/.travis.yml index 9e3fa792..0d215176 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,14 +25,16 @@ jobs: on: repo: solvespace/solvespace tags: true - - stage: deploy - name: "Snap" + - &deploy-snap + stage: deploy + name: Snap amd64 os: linux + arch: amd64 dist: bionic addons: - snaps: - - name: snapcraft - confinement: classic + snaps: + - name: snapcraft + confinement: classic script: ./.travis/build-snap.sh deploy: - provider: script @@ -47,4 +49,6 @@ jobs: on: branch: master tags: true - + - <<: *deploy-snap + name: Snap arm64 + arch: arm64 diff --git a/.travis/build-snap.sh b/.travis/build-snap.sh index d824b383..634e01c4 100755 --- a/.travis/build-snap.sh +++ b/.travis/build-snap.sh @@ -1,15 +1,4 @@ #!/bin/sh -xe -lp_data_dir="$HOME/.local/share/snapcraft/provider/launchpad" -lp_credentials="$lp_data_dir/credentials" - -mkdir -p "$lp_data_dir" -openssl aes-256-cbc -K $encrypted_c4bc81f026a2_key -iv $encrypted_c4bc81f026a2_iv \ - -in .travis/launchpad-credentials.enc \ - -out "$lp_credentials" -d -chmod 600 "$lp_credentials" - -./pkg/snap/build.sh remote-build \ - --launchpad-user solvespace \ - --launchpad-accept-public-upload \ - --build-on=amd64,arm64,armhf,i386 +sudo apt-get update +sudo ./pkg/snap/build.sh --destructive-mode diff --git a/.travis/launchpad-credentials.enc b/.travis/launchpad-credentials.enc deleted file mode 100644 index 5eba3cca..00000000 Binary files a/.travis/launchpad-credentials.enc and /dev/null differ