.travis.yml 2.1 KB
Newer Older
1 2
if: tag IS blank

A
Avi Aryan 已提交
3
language: go
4

A
Avi Aryan 已提交
5 6 7
branches:
  only:
  - master
A
Avi Aryan 已提交
8
  - dev
9

J
Jeet Parekh 已提交
10 11
install: true

12 13 14 15 16 17 18
jobs:
  include:
    - name: linux
      os: linux
      dist: xenial
      sudo: required

19
      before_install:
20 21 22 23
      - 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
J
Jeet Parekh 已提交
24
      - go get gopkg.in/olivere/elastic.v7
25 26 27
      - go get github.com/appbaseio/abc || true
      - mkdir private
      - git clone https://$PAT@github.com/appbaseio-confidential/abc-import private
J
Jeet Parekh 已提交
28 29

      script:
J
Jeet Parekh 已提交
30
      - go build -tags 'seabolt_static !oss' -o "abc-linux" ./cmd/abc/...
31

32 33 34 35
      before_deploy:
      - zip -r abc-linux.zip abc-linux
      - export TRAVIS_TAG="preview"

36 37 38 39
      deploy:
        provider: releases
        api_key: $PAT
        skip_cleanup: true
40
        file: abc-linux.zip
41
        draft: true
J
Jeet Parekh 已提交
42 43
        on:
          all_branches: true
44 45 46 47 48

    - name: macos
      os: osx
      osx_image: xcode10.2

49
      before_install:
50 51 52 53 54
      - 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
J
Jeet Parekh 已提交
55
      - go get gopkg.in/olivere/elastic.v7
56 57 58
      - go get github.com/appbaseio/abc || true
      - mkdir private
      - git clone https://$PAT@github.com/appbaseio-confidential/abc-import private
J
Jeet Parekh 已提交
59 60

      script:
61
      - go build -tags 'seabolt_static !oss' -o "abc-darwin" ./cmd/abc/...
62

63 64 65 66
      before_deploy:
      - zip -r abc-darwin.zip abc-darwin
      - export TRAVIS_TAG="preview"

67 68 69 70
      deploy:
        provider: releases
        api_key: $PAT
        skip_cleanup: true
71
        file: abc-darwin.zip
72
        draft: true
J
Jeet Parekh 已提交
73 74
        on:
          all_branches: true