forked from colinmarc/hdfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.07 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
sudo: required
language: go
go_import_path: github.com/colinmarc/hdfs
go: 1.11beta2
env:
- PLATFORM=cdh5
- PLATFORM=cdh5 KERBEROS=true
- PLATFORM=hdp2
before_install:
- export GO111MODULE=on # Travis installs into $GOPATH/src, which disables module support by default.
install:
- git clone https://github.com/sstephenson/bats $HOME/bats
- mkdir -p $HOME/bats/build
- "$HOME/bats/install.sh $HOME/bats/build"
- export PATH="$PATH:$HOME/bats/build/bin"
- ./travis-setup.sh $PLATFORM
before_script:
- export HADOOP_CONF_DIR="/etc/hadoop/conf"
- find internal/protocol -name *.pb.go | xargs touch # so make doesn't try to regen protobuf files
script: make test
before_deploy: make release
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: HgyYfxoZfsZhDNeeL4Myi85aeyei80hQL29VhQKqkFrcoKL4V4+fJo7uG5XfKLCU0nQrRA98EtQO6w8AD+ULn/Ez8DA/RHey3Ny5GzX2ZaQ35KiuM71jPcvggxh8e2EJ14txxm7TAnqCxP7p5sJggiU0xj2w3vDUUJp5Q+vP3WE=
file: gohdfs-*.tar.gz
file_glob: true
on:
repo: colinmarc/hdfs
tags: true
all_branches: true
condition: $PLATFORM = hdp2
cache:
- "$HOME/bats"