.travis.yml 1.6 KB
Newer Older
A
Avi Aryan 已提交
1
language: go
2

A
Avi Aryan 已提交
3 4 5
branches:
  only:
  - master
A
Avi Aryan 已提交
6
  - dev
7 8 9 10 11 12 13 14

jobs:
  include:
    - name: linux
      os: linux
      dist: xenial
      sudo: required

15
      before_install:
16 17 18 19 20 21 22
      - 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
J
Jeet Parekh 已提交
23 24

      script:
25 26 27 28 29 30 31 32 33 34 35 36 37
      - go build -tags "seabolt_static oss" -o "abc-linux"

      deploy:
        provider: releases
        api_key: $PAT
        skip_cleanup: true
        file: abc-linux
        draft: true

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

38
      before_install:
39 40 41 42 43 44 45 46
      - 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
J
Jeet Parekh 已提交
47 48

      script:
49 50 51 52 53 54 55 56
      - go build -tags "seabolt_static oss" -o "abc-macos"

      deploy:
        provider: releases
        api_key: $PAT
        skip_cleanup: true
        file: abc-macos
        draft: true