forked from ThyMYthOS/folding-at-home
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml.old
47 lines (42 loc) · 1.05 KB
/
.travis.yml.old
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
# Inspired by https://github.com/Crascit/cmake-snap/blob/master/.travis.yml
---
language: shell
dist: xenial
os: linux
env:
global:
- LC_ALL: C.UTF-8
- LANG: C.UTF-8
- SNAPCRAFT_ENABLE_SILENT_REPORT: y
- SNAPCRAFT_BUILD_INFO: 1
- SNAPCRAFT_BUILD_ENVIRONMENT: 'lxd'
addons:
snaps:
- name: snapcraft
channel: stable
confinement: classic
- name: lxd
channel: stable
script:
- sudo usermod --append --groups lxd $USER
- sudo /snap/bin/lxd.migrate -yes
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- sg lxd -c snapcraft
- echo " --- Deploy ---"
- echo $SNAP_TOKEN | snapcraft login --with -
- snapcraft whoami
- snapcraft upload --release=stable folding-at-home-fcole90_*.snap
after_failure:
- sudo journalctl -u snapd
#- stage: deploy
#if: repo = fcole90/fah-snap and branch = master
#os: linux
#deploy:
# provider: snap
# snap: folding-at-home-fcole90_*.snap
# token: $SNAP_TOKEN
# edge: false
# channel: latest/stable
# cleanup: false
# skip_cleanup: true