-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
31 lines (31 loc) · 1.55 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
language: go
go_import_path: github.com/ellaism/go-ellaism
go: 1.9.2
os:
- linux
- osx
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository ppa:duggan/bats --yes; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq bats; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install bats; fi
script:
- go version
- go env
- go test ./...
- if [ -n "TRAVIS_TAG" ]; then go build -ldflags "-X main.Version=$TRAVIS_TAG" ./cmd/geth; else go build ./cmd/geth; fi
before_deploy:
- sh .ci/deploy.sh
deploy:
provider: releases
api_key:
secure: BjJDAPhaE9ijZlbmb/9tVLXSz2E3mcBcGP5fxwjMnRS0DqbLIXKG4pqF+t95N5XsB9k52HewRK2MaC3xg0qTNn263akVZvIFYMUOieum+cY6hVWGslPQkyAMWgqLI87sya1z3oHUELX9eIFCugSWR+aMNXLzylxJ8EwTqHzG+fJCKZeUe9+3jSam0PIWVS7Zl62Ea9tln0xFnrDrQmEoWOThCJkuVsXOier67SVNN238fnASAmhUGfBlVREvCW6xty9keO3ng6kzHmDoUMsbABu3j6SbGTI4YdkfR7pOqDz15uO7BrI5+u7SvY4W3PByFieQ5kXhvuFV9zvtMM1PEf4EcMqBo7Y80kNBMFhwjl/q2A1pyi+WbWPJB4dnpcY7hzPuJ45NxwCiUoKAwmb5Kf/YXN16UGAwtK4vcgMdSsJfG7nb4tJRVX85UEerO7MXRdzEw1HnVtSKLd6B76kglqpgJHwyzjzL2SELTefLXM0j/AEgpwrrnVV1OiaKUYXcI0Y4RC4VJ5GTWYJGTIXb1Hn/1A4ct7Sz481TYCRk7bxqTmPWlnCb4hJElTTUkbK+Sy3tYJM/SC+sXTa+cHrs+xzzDXP9ynYUe9EJMCAF9EPDW9G0pMhTA/11vJw5hFCJ8Oo8QpDX3NG+Jbtp9LzBE4dQzuGPgSeDLCNskWX9nXg=
file: 'geth-ellaism-$TRAVIS_OS_NAME.*'
file_glob: true
draft: true
on:
repo: ellaism/go-ellaism
tags: true
skip_cleanup: true
tag_name: $TRAVIS_TAG