未验证 提交 cf92b9d4 编写于 作者: S Siddharth Kothari 提交者: GitHub

Merge pull request #158 from jeet-parekh/ci-cd

travis now builds separately for mac and linux
sudo: required
dist: trusty
language: go
go:
- 1.8.x
env:
global:
- ABC_BUILD=oss
script:
- go build -tags 'oss' ./cmd/abc/...
install: true
branches:
only:
- master
- dev
install: true
jobs:
include:
- name: linux
os: linux
dist: xenial
sudo: required
before_install:
- wget https://github.com/neo4j-drivers/seabolt/releases/download/v1.7.4/seabolt-1.7.4-Linux-ubuntu-16.04.deb
- sudo dpkg -i seabolt-1.7.4-Linux-ubuntu-16.04.deb
- sudo apt-get install -y libssl-dev build-essential
- go get github.com/neo4j/neo4j-go-driver/neo4j
- go get github.com/appbaseio/abc || true
- mkdir private
- git clone https://$PAT@github.com/appbaseio-confidential/abc-import private
script:
- go build -tags "seabolt_static oss" -o "abc-linux" ./cmd/abc/...
deploy:
provider: releases
api_key: $PAT
skip_cleanup: true
file: abc-linux
draft: true
- name: macos
os: osx
osx_image: xcode10.2
before_install:
- curl -LO https://github.com/neo4j-drivers/seabolt/releases/download/v1.7.4/seabolt-1.7.4-Darwin.tar.gz
- tar -zxf seabolt-1.7.4-Darwin.tar.gz
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/seabolt-1.7.4-Darwin/usr/local/share/pkgconfig
- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:`pwd`/seabolt-1.7.4-Darwin/usr/local/lib
- go get github.com/neo4j/neo4j-go-driver/neo4j
- go get github.com/appbaseio/abc || true
- mkdir private
- git clone https://$PAT@github.com/appbaseio-confidential/abc-import private
script:
- go build -tags "seabolt_static oss" -o "abc-macos" ./cmd/abc/...
deploy:
provider: releases
api_key: $PAT
skip_cleanup: true
file: abc-macos
draft: true
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册