-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
59 lines (51 loc) · 1.95 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
language: go
go:
- 1.7.1
sudo: required
dist: trusty
os:
- linux
- osx
# OSX queues can be frustratingly long.
matrix:
allow_failures:
- os: osx
fast_finish: true
# copy previously cached deps into GOPATH
before_install:
- if [[ -d "$HOME/gocache/src" && -d "$HOME/gocache/pkg" ]]; then rsync -a "$HOME/gocache/" "$GOPATH/"; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="g++-5" CC="gcc-5"; fi
- ./setup.sh
- ./install.sh
- ./package.sh
script: gx-go rewrite && go test ./mc/...
# copy expensive go dependencies to $HOME/gocache dir, where travis will cache them
before_cache:
- mkdir -p $HOME/gocache/src $HOME/gocache/pkg
- rsync -a $GOPATH/src/ $HOME/gocache/src/
- rsync -a $GOPATH/pkg/ $HOME/gocache/pkg/
- rm -rf $HOME/gocache/src/github.com/mediachain/concat
# cache go dependencies (espeically /pkg with gorocksdb)
cache:
directories:
- $HOME/gocache
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: Rna+kIBeoIrW9HXhf2k9OFbXXHniVemE0m4VAHJUqCJhUmItdOMOPosNridzFZIH3Ophmm5oittg/Sb8nxVk6XRoZ4ZhCj5phbAv08+fm9ld5xGCu5OhGnVKsqL3uOgApOxIZusY/bR2UFDFgi8R/ZoYDC8cmqZXetP8Ig4Twb33t9p2ehzhCa4LHD4XeYu0NrlvqICQsM6pPkkVBHa3V6hzwaee75TZnRWcQTQZ2vU90QZyIuvLL5+E9R9aqOUy3LzghTQ08fqFNkX15BerctkCYkLzeyKzRKl0KJ61lOILsisRNaI9LxToR83gLem4WEBNseoRbbOJ5g8U7qsfsiMDzxERXXsEoJswfuof/wKGO92faZNoMrXbdTZbCD1L55fG3AvdTrmqhE0QfG26PjjNB6jvJ7KAU1LcNsJPRUbD/vwOau8W03nJt/BsZayF4mQi685YS+DRPsEbyiTzDHZd5el57k6d97B1fowlzLcvTkAm8uKvKifEmgG0gp4FPeeO2mjo72zLWnVMfzBGbFoWnvAIomt/4003fP/dQcxiEw5OWR3qk2O83cSUAaAdAcHALFqTQUT3WQoX9VT/JMwRbPs3DcDDbPe3tdKFEEmfabOq5M7L7JrShTiXvfxu5fh73shPbJVWCodzYZWEo7zNPfd+ZrJxZFk+BLVrmgc=
file_glob: true
file: 'dist/*.tgz'
on:
repo: mediachain/concat
tags: true
# only upload a release if we're on a commit whose tag starts with 'v'
condition: $(git describe --tags) == v*