github.com/ezbuy/gauge@v0.9.4-0.20171013092048-7ac5bd3931cd/build/package.sh (about)

     1  #!/bin/sh
     2  
     3  # Copyright 2015 ThoughtWorks, Inc.
     4  
     5  # This file is part of Gauge.
     6  
     7  # Gauge is free software: you can redistribute it and/or modify
     8  # it under the terms of the GNU General Public License as published by
     9  # the Free Software Foundation, either version 3 of the License, or
    10  # (at your option) any later version.
    11  
    12  # Gauge is distributed in the hope that it will be useful,
    13  # but WITHOUT ANY WARRANTY; without even the implied warranty of
    14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15  # GNU General Public License for more details.
    16  
    17  # You should have received a copy of the GNU General Public License
    18  # along with Gauge.  If not, see <http://www.gnu.org/licenses/>.
    19  
    20  # Usage:
    21  # ./build/package.sh [--nightly]
    22  
    23  if [[ -z $GOPATH ]]; then
    24      export GOPATH=`pwd`
    25  fi
    26  if [[ -z $GOBIN ]]; then
    27      export GOBIN="$GOPATH/bin"
    28  fi
    29  
    30  cd $GOPATH/src/github.com/getgauge/gauge
    31  
    32  go get github.com/tools/godep && $GOBIN/godep restore
    33  
    34  go run build/make.go --all-platforms $1
    35  
    36  chmod +x build/install/install.sh && chmod +x bin/**/* && rm -rf deploy
    37  
    38  security unlock-keychain -p $KEYCHAIN_PASSWORD login.keychain && security import /vagrant/Gauge_Osx_Cert.p12 -P "$CERT_PASSWORD" -A -k login.keychain && go run build/make.go --distro --all-platforms --skip-windows $1