加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
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"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化