-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
49 lines (44 loc) · 1.13 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
language: go
go:
- 1.11.2
install: true
jobs:
include:
- name: Build and test on MacOS
os: osx
env:
- PKG_FILE=fractal-bin.${TRAVIS_TAG}.macos.tgz
- ENV_OS=osx
script:
- go build ${gobuild_args} ./... && go test ${gobuild_args} ./...
- bash scripts/ci/package.sh
- name: Build and test on Ubuntu Bionic 18.04
dist: bionic
env:
- PKG_FILE=fractal-bin.${TRAVIS_TAG}.ubuntu.tgz
- ENV_OS=ubuntu
script:
- cp transaction/txexec/libwasmlib.so.ubuntu transaction/txexec/libwasmlib.so
- go build ${gobuild_args} ./... && go test ${gobuild_args} ./...
- bash scripts/ci/package.sh
- name: Code check
os: osx
addons:
homebrew:
packages:
- golangci/tap/golangci-lint
update: true
script:
- golangci-lint run -D errcheck,structcheck ./...
deploy:
provider: releases
api_key: "${travis_ci_apikey}"
file:
- "scripts/install.sh"
- "scripts/install_in_docker.sh"
- "release/${PKG_FILE}"
skip_cleanup: true
overwrite: true
prerelease: true
on:
tags: true