forked from snapcrafters/magic-wormhole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (26 loc) · 891 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
language: bash
os: linux
sudo: enabled
env:
global:
- LC_ALL: C.UTF-8
- LANG: C.UTF-8
install:
- sudo apt update
- sudo apt install -y snapd
- sudo snap install lxd --channel 3.0/stable
- sudo snap install snapcraft --candidate --classic
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- mkdir -p "$TRAVIS_BUILD_DIR/snaps-cache"
script:
- export PATH=/snap/bin:$PATH
- sudo snapcraft cleanbuild
- sudo cp *.snap "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap"
after_success:
- sudo snap install transfer
- timeout 180 sudo /snap/bin/transfer "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap"
after_failure:
- sudo journalctl -u snapd
- sudo snap install http
- /snap/bin/http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16