snap: more yak-shaving

- generate decryption step
- skip job for PRs
- remove transfer.sh support
- deploy every (master) commit
This commit is contained in:
Justin M. Keyes 2019-11-28 17:23:43 -08:00
parent 8501e4a1ff
commit c6d70d1786
5 changed files with 23 additions and 66 deletions

View File

@ -1,50 +0,0 @@
U2FsdGVkX1/f6XBB7uNPz51dJmmVdSFAzF0hCADmKxkwZnDZc8eeN/e0iLjuyaXK
hEdZpyTdnP0OUzoJo3d346ZWVlzZ1NYNJ6MC83/z4LCZP2DVTLN6enWIDLZbAD6z
308RHGUSkTLfp2ys1U5Ujft+RvP4+T+emkVgn36sSJqNt0i3eP/aKNPxS3PRm/t2
N5igGH6QDnCLkaX1wDnGPv8vSn7Ngj1SFVIE6KaZrmLpix8e/I+32hZ66/YrN2KS
FGjtsGhjzK5rAo32pccd5cA7XvpcNwUivPu4wbu1wfRMcAwczB7e13SB+aXgWviw
B/vC5lUDD3giCKB8XxTpMDuyOqgIqi9UsNEz343kXboIBu+wR6OKbZk6ryoGU5XR
588uAJv7fouf48YDflhjvZsoexg0Vz04RyEeV3aEm5NkljryYhvh3GUPNQINifZv
QJ40f7Hqpjtk/cfIbMlURKALBtRfBr63JS6AoB3wpElUS2OHGeEtQ+dGF9v5AnLV
2rL9zeWUC4k+/PomsO4+oKyaCVxHI2/wUjf7eiOSaGxSQfQJNVG2r63j72qktoQU
arNgt1jzVj+ApbCC9pEiIWfTy7lPUV7KDZKkb5lcKKaggJMA2jFcj7UOL+2jDT8y
2kYyRExeGtXmd7/EHR3P+k2DuLorOwhVZVqzEWtf2Kao/eTfoEKCYam/yjo66gPG
0mK6+o5k4LDHYIHwwPKDTYRKz5O1wgniyJgTqH6KUxpJV9KDKG92QHImV+pvg0aZ
lHa8vzKQf8Q1yIVM4+cFJRNMmse4iVQWo/inJqxUNoFKCrijCmXwWVE+ucd/PDQz
hsKAUWvQGY5aBDa/0e+WoeNjkGFd9ymTEfLQTFRLnwdpnpuQCmQR4AHK9KhTUlMC
0ALPElB3ytZjhV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WAhxRNUxB1QviVhpY+20Lg9aQrCZbFyAIH0u/2HkLMBW0XPgA
U4spjUqM18b0nNlSuVuUqET2//WHvw544nHnptB6H5YA0nfxTbRB4Dx0UBk09lJB
0kLKLD3Ot1kuSZ1UTTH8hQ==

View File

@ -4,6 +4,19 @@ language: c
env:
global:
# Encrypted environment variables, see
# http://docs.travis-ci.com/user/encryption-keys/
#
# SNAP_SECRET_KEY: generated by:
# travis encrypt SNAP_SECRET_KEY=xx --add
# https://github.com/neovim/neovim/pull/11428
# snapcraft key expires after 1 year. Steps to refresh it:
# 1. snapcraft enable-ci travis --refresh
# 2. mv .snapcraft/travis_snapcraft.cfg ci/snap/travis_snapcraft.cfg
# 3. Copy after_success command to ci/snap/deploy.sh from .travis.yml
# 4. Undo changes to .travis.yml
- secure: hd0qn2u8ABbJg5Bx4pBRcUQbKYFmcSHoecyHIPTCnGJT+NI41Bvm/IkN/N5DhBF+LbD3Q2nmR/dzI5H/dqS7RxMFvEx1DuFLendFHHX3MYf0AuKpXYY3gwgMTmqx8p/v6srlU7RBGWNGzHCWqksAem+EIWCe3I7WvfdKo1/DV/Y=
# Set "false" to force rebuild of third-party dependencies.
- CACHE_ENABLE=true
# Build directory for Neovim.
@ -145,7 +158,7 @@ jobs:
env:
- CLANG_SANITIZER=TSAN
- *common-job-env
- if: type != pull
- if: type != pull_request
name: snap
os: linux
env:
@ -162,16 +175,19 @@ jobs:
- name: transfer
- name: lxd
channel: stable
# Override default before_install, before_cache.
before_install: /bin/true
before_cache: /bin/true
install: ci/snap/install.sh
before_script: echo "Building snap..."
script: ci/snap/script.sh
after_success: ci/snap/after_success.sh
before_cache: /bin/true
deploy:
skip_cleanup: true
provider: script
script: ci/snap/deploy.sh
on:
branch: master
fast_finish: true
before_install: ci/before_install.sh

View File

@ -12,8 +12,3 @@ sudo snap install "$RESULT_SNAP" --dangerous --classic
SHA256=$(sha256sum "$RESULT_SNAP")
echo "SHA256: ${SHA256} ."
timeout 240 /snap/bin/transfer "$RESULT_SNAP"
travis_retry bash "${ROOT_PATH}/scripts/services/0x0.st.sh" "${RESULT_SNAP}"

View File

@ -4,19 +4,15 @@ set -e
set -o pipefail
# not a tagged release, abort
[[ "$TRAVIS_TAG" != "$TRAVIS_BRANCH" ]] && exit 0
# [[ "$TRAVIS_TAG" != "$TRAVIS_BRANCH" ]] && exit 0
openssl enc \
-aes-256-cbc \
-md sha512 \
-pbkdf2 \
-iter 1000 \
-a -d \
-in .snapcraft/travis_snapcraft.cfg \
-out .snapcraft/snapcraft.cfg -k $SNAP_SECRECT_KEY
mkdir -p .snapcraft
openssl aes-256-cbc -K $encrypted_ece1c4844832_key -iv $encrypted_ece1c4844832_iv
-in ci/snap/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
SNAP=$(find ./ -name "*.snap")
# TODO(justinmk): This always does `edge` until we enable tagged builds.
if [[ "$SNAP" =~ "dirty" || "$SNAP" =~ "nightly" ]]; then
snapcraft push "$SNAP" --release edge
else

Binary file not shown.