forked from XiovV/Golty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (43 loc) · 2.53 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
os: linux
dist: bionic
env:
global:
- secure: "qZN8JV91mJz2sLyewz6nRVb++KsNUwstvbMPpion4kfs23m54FgMDI+bpu8pgrZyINqsFwDdKbElnUOjR7tAwtJq5zLeSuC7vy2YT/eud/D3C1kcJBjE4qYihRRRlYMQhlsZb1/3gaN9mvUx0g1UmHLug9SfSy3GFDiSKMeE6umMOLJzLzXl0aOLtREiFZMb8TmvVRzD6W1GuLBe2gxYHvsOKumhVbL0CJnocGzTlSmAgx/smPjMahTznURtmfXpEijh7FBfUz4JRhGSdNjKGLXZ/ci8b1MVYRu1FElkyub/hVgkcJEHbmBeXDQtdTCR6Xp+a4r0vRnroHwfRLHoAfXw7QexJqOZ4Xab91ExFVzHvxvasEcEuUjSMYubnW4InlcxbM7r7lNGRspbbb8FNl3MVcxcYewkafN6tcO/yaHUHyneBaXE8TwqUXwscMFy4N9lRcK2hrUL/505honlAOnABRjav2NhynThX9kBs7Wd3E4eP2kyYwOTYmCmj4n3Ses2kelxfHMq/yXAML29rYurxEcFiOcwTaL5O66wW+ecdb6mhlXyPmS/ypCtlUKOWjs3+5yoSwaT8o+3usgcllIEzStczISKMZ1+Rtgf32o1voJNn0dQSMmMNLV4WRNAl8TZjEjTrY6N2Xz/7xCXPwh+UoCaNaOlaPAYY4v0tcc="
- secure: "J9HuGVczx8h9zNJYYn6ENDo0djQKUj6cmFx3Z2qi85quK4brJko//TW154SnKusabXJ/oGREGsO79A7RXrMki8xfYe+zmtwaAw6Ye9c09lPDI874aSUXNfWBDj76dJbyxzcYdTxjqXai2DgYmXH8ILtAwuEJmUNcjkETvrZw4f80sLizSts8u4gTjAQ36r8MCULJcIb1fJbdWtC0sENGIwyqD94CGl+dATctb3IhH0IlMVrFj+Q9g5oVd6QZlqq+ETpVDVYln47QOwlC1XNIX4jQQHA+ZI3QdUURuL6d/ZMTrIskRhlbGDHkIps34ijad7cO58HtdoGgqg6n79p4ml6oo0YIdSPXIUB8cQqL+Qv0O4lL6X9N6IEwEuh1f3ayPr0EgFZHFU3FvhcCUKo0FjRL919npC3a8kWGoTMDTrEbZ2MYL0yIbh3WWOXa0h8JDEsFUwb3y1wrpwdB+pE3WyRHirHIHV/4BNXXWa4f/f8UOKmTO6Y+OkBc9YJQfOIi/tYzJHZnshbbpH4mONTphN6KuKhFBG7s2pklLvMo4aZIn82MnSmxmyL2p3q3bILKJIvXDwIeVfw86fxBSNyw3B4EgmNqDfhq1gajdXlZxRkmMaLkDr75aPJLOUOSodKbCRRrPWPL/eXko+amgMFqSl5+lXHLJ/qFIAvF+l5Br/A="
branches:
only:
- master
- dev
stages:
- go_test+build
- docker_build+deploy
jobs:
include:
- stage: "go_test+build"
language: go
go: "1.13"
install:
- sudo apt-get update
- sudo apt-get install -y curl ffmpeg
- curl -L https://yt-dl.org/downloads/latest/youtube-dl -o ./youtube-dl && chmod a+rx ./youtube-dl && sudo cp youtube-dl /usr/local/bin && export PATH=$PATH:$PWD
- go get -v
script:
- go test -v
- go build -v
- stage: "docker_build+deploy"
if: branch = master
language: shell
before_install:
- sudo docker run --privileged linuxkit/binfmt:v0.7
- sudo docker run -d --privileged -p 1234:1234 --name buildkit moby/buildkit:latest --addr tcp://0.0.0.0:1234 --oci-worker-platform linux/amd64 --oci-worker-platform linux/arm64 --oci-worker-platform linux/armhf
- sudo docker cp buildkit:/usr/bin/buildctl /usr/bin/
- export BUILDKIT_HOST=tcp://0.0.0.0:1234
addons:
apt:
packages:
- docker-ce
script:
- ./travis/build-amd64.sh
- ./travis/build-arm.sh
- ./travis/build-arm64.sh
- ./travis/dockerhub-deploy.sh