.travis.yml 4.4 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
jobs:
  include:
J
Jeet Parekh 已提交
14 15 16 17
    # - name: linux
    #   os: linux
    #   dist: xenial
    #   sudo: required
18

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

J
Jeet Parekh 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
    #   script:
    #   - go build -tags 'seabolt_static !oss' -o "abc-linux" ./cmd/abc/...

    #   before_deploy:
    #   - zip -r abc-linux.zip abc-linux
    #   - export TRAVIS_TAG="preview"

    #   deploy:
    #     provider: releases
    #     api_key: $PAT
    #     skip_cleanup: true
    #     file: abc-linux.zip
    #     draft: true
    #     on:
    #       all_branches: 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 gopkg.in/olivere/elastic.v7
    #   - 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-darwin" ./cmd/abc/...
62

J
Jeet Parekh 已提交
63 64 65
    #   before_deploy:
    #   - zip -r abc-darwin.zip abc-darwin
    #   - export TRAVIS_TAG="preview"
66

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

J
Jeet Parekh 已提交
76 77
    - name: windows
      os: windows
78

79
      before_install:
J
Jeet Parekh 已提交
80 81
      - pwd
      - ls
J
Jeet Parekh 已提交
82 83 84
      - curl -LO http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip
      - curl -LO http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip
      - curl -LO http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
J
Jeet Parekh 已提交
85
      - curl -LO https://github.com/neo4j-drivers/seabolt/releases/download/v1.7.4/seabolt-1.7.4-win64-mingw.zip
J
Jeet Parekh 已提交
86 87 88
      - 7z x -opkg-config pkg-config_0.26-1_win32.zip
      - 7z x -oglib glib_2.28.8-1_win32.zip
      - 7z x -ogettext gettext-runtime_0.18.1.1-2_win32.zip
J
Jeet Parekh 已提交
89
      - choco install pkgconfiglite -y
J
Jeet Parekh 已提交
90
      - pkg-config --variable pc_path pkg-config
J
Jeet Parekh 已提交
91 92 93 94
      # - ls C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig
      # - ls C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/bin
      # - ls C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/lib
      # - ls C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/include
J
Jeet Parekh 已提交
95
      - 7z e -oC:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig seabolt-1.7.4-win64-mingw.zip
J
Jeet Parekh 已提交
96
      # - which gcc
J
Jeet Parekh 已提交
97
      - export PATH=$PATH:`pwd`/glib/bin:`pwd`/gettext/bin:`pwd`/pkg-config/bin:C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/bin
J
Jeet Parekh 已提交
98
      - echo $PATH
J
Jeet Parekh 已提交
99
      - export CPATH=C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/include/seabolt17
J
Jeet Parekh 已提交
100
      - export C_INCLUDE_PATH=C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/include/seabolt17
J
Jeet Parekh 已提交
101 102 103
      - ls C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/include/seabolt17
      - ls C:/ProgramData/chocolatey/lib/pkgconfiglite/tools/pkg-config-lite-0.28-1/share/pkgconfig/include/seabolt17/bolt
      - cpp -v
J
Jeet Parekh 已提交
104 105 106
      - go get github.com/neo4j/neo4j-go-driver/neo4j
      - go get gopkg.in/olivere/elastic.v7
      - go get github.com/appbaseio/abc || true
J
Jeet Parekh 已提交
107 108

      script:
J
Jeet Parekh 已提交
109 110
      - echo $PATH
      - echo $PKG_CONFIG_PATH
J
Jeet Parekh 已提交
111
      - pkg-config.exe -h