-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (65 loc) · 3.73 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
language: go
go:
- 1.13
jobs:
include:
- os: linux
dist: xenial
before_install: sudo apt-get -y install libxinerama-dev xorg-dev libgl1-mesa-dev
script:
- go build
- mkdir -p configui-linux-${TRAVIS_TAG}
- mv configui configui-linux-${TRAVIS_TAG}/
- tar -czvf configui-linux-${TRAVIS_TAG}.tar.gz configui-linux-${TRAVIS_TAG}
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
- os: windows
script:
- go build
- go get fyne.io/fyne/cmd/fyne
- fyne package
- ls
- mv configui.exe configui-${TRAVIS_TAG}.exe
- os: osx
script:
- go build
- go get fyne.io/fyne/cmd/fyne
- fyne package
# - mkdir -p configui.app/Contents/MacOS
# - cp configui configui.app/Contents/MacOS/configui
- cp configui configui-osx-${TRAVIS_TAG}
- tar -czvf configui-osx-${TRAVIS_TAG}-app.tar.gz configui.app
- tar -czvf configui-osx-${TRAVIS_TAG}-unpackaged.tar.gz configui-osx-${TRAVIS_TAG}
cache:
directories:
- $HOME/Library/Caches/go-build
- $HOME/gopath/pkg/mod
deploy:
- provider: releases
token:
secure: XxD0tMmJDx439PDGajRqLFJZYuqwQhqhifoXkT3V21BRoTjjnenV3C+ImrjF386RrKZiN6w6azfZ1PSMRbZOEpaglpsOzE/+FtePahGfQXuYA1HZ0QK4l0ovZ+dM/C1TPFDL2W1IhXtDCBjhS8YgwOIt0uNXWYgFLdjITTIzVM0MnAYryfiP1lMYPsHTd3fxFM0MKTLe472evTaUat8PEiv0rhr9CWB4RVQJ8txyrHftUb0LMAmZrwVEXpa0lKXj/CU1hyh5c8xnOrD67wwKA3LOAuzfePBFDkVXEQNyNNGDrJVvsFbk6sIE37aNbNKmrBpm9UqQdS3Cz5g8wHDsEhDfYffe+QwAkHgN7jdELMYZ0LnE2jXGvYOoBi8jBXoPLO2NEXtuwm7PV1SI38scK4RruzorWlV9brjwOxRNsw6T4YQ+Z/ydc71EjFLuAUqe+YSSgdEB+O2M2+hIzABZz8WzXct4lOI3OG8LIPORgGxOmYgVmx4BTS3/tpDctkmK8uiNxNS/4egM4ARYyvW9QU/0aHQx7f3NXm9W1MZVRp0zohF7hnWt/GdtmjXqHvbCOmAsBSIurftJVs5vSKUA3Hf/2vJrlA4UgJFef72CMTHyZr4FFFEZ3vlZYiqy3L/nfKAQnRqqAMdGWQ2rOMosEKOLSsB+HVre90t5oous56I=
file: configui-linux-${TRAVIS_TAG}.tar.gz
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"
- provider: releases
token:
secure: XxD0tMmJDx439PDGajRqLFJZYuqwQhqhifoXkT3V21BRoTjjnenV3C+ImrjF386RrKZiN6w6azfZ1PSMRbZOEpaglpsOzE/+FtePahGfQXuYA1HZ0QK4l0ovZ+dM/C1TPFDL2W1IhXtDCBjhS8YgwOIt0uNXWYgFLdjITTIzVM0MnAYryfiP1lMYPsHTd3fxFM0MKTLe472evTaUat8PEiv0rhr9CWB4RVQJ8txyrHftUb0LMAmZrwVEXpa0lKXj/CU1hyh5c8xnOrD67wwKA3LOAuzfePBFDkVXEQNyNNGDrJVvsFbk6sIE37aNbNKmrBpm9UqQdS3Cz5g8wHDsEhDfYffe+QwAkHgN7jdELMYZ0LnE2jXGvYOoBi8jBXoPLO2NEXtuwm7PV1SI38scK4RruzorWlV9brjwOxRNsw6T4YQ+Z/ydc71EjFLuAUqe+YSSgdEB+O2M2+hIzABZz8WzXct4lOI3OG8LIPORgGxOmYgVmx4BTS3/tpDctkmK8uiNxNS/4egM4ARYyvW9QU/0aHQx7f3NXm9W1MZVRp0zohF7hnWt/GdtmjXqHvbCOmAsBSIurftJVs5vSKUA3Hf/2vJrlA4UgJFef72CMTHyZr4FFFEZ3vlZYiqy3L/nfKAQnRqqAMdGWQ2rOMosEKOLSsB+HVre90t5oous56I=
file:
- configui-osx-${TRAVIS_TAG}-app.tar.gz
- configui-osx-${TRAVIS_TAG}-unpackaged.tar.gz
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = osx"
- provider: releases
token:
secure: XxD0tMmJDx439PDGajRqLFJZYuqwQhqhifoXkT3V21BRoTjjnenV3C+ImrjF386RrKZiN6w6azfZ1PSMRbZOEpaglpsOzE/+FtePahGfQXuYA1HZ0QK4l0ovZ+dM/C1TPFDL2W1IhXtDCBjhS8YgwOIt0uNXWYgFLdjITTIzVM0MnAYryfiP1lMYPsHTd3fxFM0MKTLe472evTaUat8PEiv0rhr9CWB4RVQJ8txyrHftUb0LMAmZrwVEXpa0lKXj/CU1hyh5c8xnOrD67wwKA3LOAuzfePBFDkVXEQNyNNGDrJVvsFbk6sIE37aNbNKmrBpm9UqQdS3Cz5g8wHDsEhDfYffe+QwAkHgN7jdELMYZ0LnE2jXGvYOoBi8jBXoPLO2NEXtuwm7PV1SI38scK4RruzorWlV9brjwOxRNsw6T4YQ+Z/ydc71EjFLuAUqe+YSSgdEB+O2M2+hIzABZz8WzXct4lOI3OG8LIPORgGxOmYgVmx4BTS3/tpDctkmK8uiNxNS/4egM4ARYyvW9QU/0aHQx7f3NXm9W1MZVRp0zohF7hnWt/GdtmjXqHvbCOmAsBSIurftJVs5vSKUA3Hf/2vJrlA4UgJFef72CMTHyZr4FFFEZ3vlZYiqy3L/nfKAQnRqqAMdGWQ2rOMosEKOLSsB+HVre90t5oous56I=
file: configui-${TRAVIS_TAG}.exe
skip_cleanup: true
on:
tags: true
condition: "$TRAVIS_OS_NAME = windows"