forked from cmars/kafka-schnapp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (33 loc) · 890 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
33
34
35
36
37
dist: bionic
language: minimal
before_install:
# Install and set up LXD. LXD is used to build the snap.
- sudo apt remove -y --purge lxd lxd-client
- sudo snap install lxd
- sudo sh -c 'echo PATH=/snap/bin:$PATH >> /etc/environment'
- sudo lxd waitready;
- sudo lxd init --auto;
- sudo usermod -a -G lxd travis;
# Install other build dependencies
- sudo snap install charm --classic
- sudo snap install snapcraft --classic
- sudo apt-get install -y build-essential flake8
install:
# Workaround for https://github.com/juju/charm-tools/issues/532
- git config --global --unset protocol.version
# Lint check for charm code
- make lint
# Build snap and charm
- sudo su travis -c make
deploy:
- skip_cleanup: true
on:
branch: master
provider: snap
snap: kafka_*.snap
channel: edge
- skip_cleanup: true
provider: script
script: bash charm/deploy.bash
on:
branch: master