This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
forked from canonical/snapcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (74 loc) · 2.38 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: bash
dist: bionic
env:
global:
- LC_ALL: "C.UTF-8"
- LANG: "C.UTF-8"
- PATH: "/snap/bin:$PATH"
jobs:
include:
- stage: snap
name: snap
workspaces:
create:
name: snaps
paths:
- "snapcraft-pr$TRAVIS_PULL_REQUEST.snap"
addons:
snaps:
- name: snapcraft
channel: stable
classic: true
- name: transfer
- name: http
apt:
packages:
- libapt-pkg-dev
- libffi-dev
- libnacl-dev
- libsodium-dev
- libssl-dev
- libyaml-dev
- python3.6-dev
script:
- snapcraft snap --destructive-mode --output "snapcraft-pr$TRAVIS_PULL_REQUEST.snap"
- sudo snap install "snapcraft-pr$TRAVIS_PULL_REQUEST.snap" --dangerous --classic
- snapcraft clean --destructive-mode
- snapcraft snap --destructive-mode --output "snapcraft-pr$TRAVIS_PULL_REQUEST.snap"
after_success:
- timeout 180 /snap/bin/transfer snapcraft-pr$TRAVIS_PULL_REQUEST.snap
after_failure:
- sudo journalctl -u snapd
- /snap/bin/http https://api.snapcraft.io/v2/snaps/info/core architecture==amd64 Snap-Device-Series:16
- stage: integration
name: store
workspaces:
use: snaps
if: head_repo = "snapcore/snapcraft"
script:
- ./runtests.sh spread "google:ubuntu-18.04-64:tests/spread/general/store"
- stage: docker
env:
RISK: "stable"
script:
- cd docker
- docker build --no-cache -f ${RISK}.Dockerfile --tag snapcore/snapcraft:${RISK} .
- docker run snapcore/snapcraft:${RISK} snapcraft --version
- env:
RISK: "edge"
script:
- cd docker
- docker build --no-cache -f ${RISK}.Dockerfile --tag snapcore/snapcraft:${RISK} .
- docker run snapcore/snapcraft:${RISK} snapcraft --version
- env:
RISK: "beta"
script:
- cd docker
- docker build --no-cache -f ${RISK}.Dockerfile --tag snapcore/snapcraft:${RISK} .
- docker run snapcore/snapcraft:${RISK} snapcraft --version
- env:
RISK: "candidate"
script:
- cd docker
- docker build --no-cache -f ${RISK}.Dockerfile --tag snapcore/snapcraft:${RISK} .
- docker run snapcore/snapcraft:${RISK} snapcraft --version