-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
32 lines (28 loc) · 906 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
31
32
dist: xenial
sudo: required
language: go
go: stable
arch:
- amd64
- arm64
cache:
directories: [$HOME/.cache/snapcraft/]
script:
- until sudo snap install snapcraft --classic; do echo "Retrying"; done
- sudo apt remove --purge --assume-yes lxd lxd-client
- sudo snap install lxd
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- sudo adduser $USER lxd
- openssl aes-256-cbc -K $encrypted_991c22bb09ad_key -iv $encrypted_991c22bb09ad_iv
-in snapcraft-login.enc -out snapcraft-login -d
- snapcraft login --with snapcraft-login
- sudo apt update
- sudo apt install jq
- sudo ./scripts/snap.sh
- sudo snap install *.snap --dangerous
- ./tests/smoke_test.sh
- |
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_EVENT_TYPE" != "pull_request" ]; then
for file in *.snap; do echo 'file: ' $file && snapcraft push $file --release edge; done
fi