forked from genuinetools/img
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 1.93 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
language: go
sudo: true
notifications:
email: true
go:
- 1.10.x
before_install:
- go get github.com/golang/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
- go get -u github.com/jteeuwen/go-bindata/...
- echo "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/backports.list
- sudo apt update
- sudo apt install -y --no-install-recommends -t trusty-backports libseccomp-dev parallel uidmap
- curl -sSL -o runc https://misc.j3ss.co/tmp/runc && chmod +x runc && sudo mv runc /usr/bin/runc
jobs:
include:
- script: make all
- stage: Run Test Coverage
script: make cover
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: Build Release
script:
- make release
- echo "Deploying to GitHub releases ..."
deploy:
provider: releases
api_key:
secure: "U12GervAMGPIl6Gg2DXdNrLwi7alBco1Vp8FQ1JkCXbncY+Pkq+jske+PgYK8PspeEVr9HQwQYRYCrLVMZbwoNQhj6Ks2YP1FwDEUbS3k+ECDILiMG+MUlLSLJKZWzFxibKs/5QDmMZmA8Gyhvyk5yFcfc7mhMBXiydtcP1emMFntXjkI3xj96onE+8PNKLOmkoyWuC/yvi3VXl8CXPb8g6rztuZnfaGbSBIN9wxEUeJRN71+IRQxd1CHJPi1K1W5RBcD/GjHgzafW9tu/GJzCvWXzOTRctOte8gduXGFGMus4DhdLV1lf5tC08mcwm1XYoWWQYHB2WIR5T3fmIQhibJ2LxwC2rkBPDKAjyTzLLBA4D3LujmpF0gbVkwYeXwUQO3AfivfC6/YzJa8oJeL3igGMyc5ikHfHyOVRVA2eTxQBWe8J9C7OwxnYYzdsYu6BVPQ/S8J7eNhKTov+2Viw9un4fg3Mt6vbwVK2ZF3DwhQU03p9Hq38Thps4ic+fBix3kkWjBjFfFQbhdNL3oirZUad9JMGkB0afxmPiHkXZ5VYYF6gUNOCCi/dcW4aiE3uZWjaqW8QCQIzKGQKP9WtYbLL3hShfyvv8mZLnIzxiCdy9pogiwh3BOugBFG5NHRSJ8VGzwrMxKkyrpj+xEHlNiaRbrY8TLTSnkayLMC2Q="
file:
- cross/img-linux-amd64.md5
- cross/img-linux-amd64.sha256
- cross/img-linux-amd64
skip_cleanup: true
on:
tags: true
- stage: Run e2e Tests
script:
- make install
- ./contrib/e2e-dockerfiles-build-test.sh
env:
- STATE_DIR=$HOME/img