Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from snapcrafters/core-migration
Migrate core
- Loading branch information
Showing
2 changed files
with
59 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
language: bash | ||
os: linux | ||
sudo: enabled | ||
dist: xenial | ||
|
||
env: | ||
global: | ||
- LC_ALL: C.UTF-8 | ||
- LANG: C.UTF-8 | ||
- SNAPCRAFT_ENABLE_SILENT_REPORT: y | ||
- SNAPCRAFT_ENABLE_DEVELOPER_DEBUG: y | ||
|
||
addons: | ||
snaps: | ||
- name: snapcraft | ||
channel: candidate | ||
classic: true | ||
- name: http | ||
- name: transfer | ||
- name: lxd | ||
channel: stable | ||
|
||
install: | ||
script: | ||
- 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.migrate -yes | ||
- 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" | ||
- sudo snapcraft --use-lxd | ||
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" | ||
- cp *.snap "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap" | ||
- timeout 180 /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 | ||
- http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters