forked from come-maiz/blockchain-snaps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
30 lines (24 loc) · 946 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sudo: required
services:
- docker
env:
matrix:
- PROJECT=bitcoin ENCRYPTED_KEY=$encrypted_de6cd6e0cc4e_key ENCRYPTED_IV=$encrypted_de6cd6e0cc4e_iv
- PROJECT=bitcoin-unlimited ENCRYPTED_KEY=$encrypted_9a4f25510385_key ENCRYPTED_IV=$encrypted_9a4f25510385_iv
- ONLY_EDGE=1 PROJECT=bitcoin-ec ENCRYPTED_KEY=$encrypted_4e5ec7b39439_key ENCRYPTED_IV=$encrypted_4e5ec7b39439_iv
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq wget jq
before_script:
- openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV
-in $PROJECT/.snapcraft/travis_snapcraft.cfg -out $PROJECT/.snapcraft/snapcraft.cfg -d
script:
- ./scripts/snap-in-docker.sh $PROJECT
deploy:
'on':
branch: master
provider: script
script: docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq && apt
install snapcraft -y && cd $(pwd)/$PROJECT && snapcraft push *.snap --release
edge"
skip_cleanup: true