Skip to content

Commit

Permalink
Merge pull request #38 from FactomProject/full-deploy
Browse files Browse the repository at this point in the history
Full deploy
  • Loading branch information
carryforward committed Sep 17, 2019
2 parents 75a5a54 + 33240ef commit 3fea8d8
Show file tree
Hide file tree
Showing 4 changed files with 3,443 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
@@ -1,11 +1,10 @@
version: 2

jobs:

build:
working_directory: /go/src/github.com/FactomProject/enterprise-wallet
docker:
- image: circleci/golang:1.9
- image: circleci/golang:1.12.1

steps:
- checkout
Expand Down
62 changes: 48 additions & 14 deletions .travis.yml
@@ -1,19 +1,53 @@
language: go
go:
- 1.7.4
- 1.x
os:
- osx
- linux
osx_image: xcode8
before_install:
- go get github.com/mattn/goveralls
- go get -d github.com/FactomProject/factomd
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ;fi
- go get github.com/FactomProject/staticfiles
- curl https://glide.sh/get | sh
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew cask install java ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository ppa:ubuntu-wine/ppa -y ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install graphviz -y ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install graphicsmagick -y ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install icnsutils -y ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install icnsutils -y ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo sudo apt-get install wine1.8 winetricks -y ; fi
- cd $GOPATH/src/github.com/FactomProject/enterprise-wallet/web
- mkdir closure
- cd closure
- wget -O compiler.jar https://dl.google.com/closure-compiler/compiler-latest.zip
install:
- go get -v github.com/Masterminds/glide
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3 && go install && cd -
- glide install
- cd $GOPATH/src/github.com/FactomProject/enterprise-wallet
- glide install
- bash make.sh closure
- cd electron-wrapper/app
- npm install
- cd ..
- npm install
- export DEBUG=electron-builder
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then npm run dist:mac ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then npm run dist:win ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then npm run dist:linux:deb ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then npm run dist:linux:zip ; fi
script:
- cd $GOPATH/src/github.com/FactomProject/enterprise-wallet
- glide install
- go build -v
- cd $GOPATH/src/github.com/FactomProject/factomd && git checkout develop && glide install
- go build -v
- nohup ./factomd -network=LOCAL -db=Map -blktime=1 &
- cd $GOPATH/src/github.com/FactomProject/enterprise-wallet
- $GOPATH/bin/goveralls -service=travis-ci -ignore=$(paste -sd, .coverignore)
- ls $GOPATH/src/github.com/FactomProject/enterprise-wallet/electron-wrapper/dist/
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ls $GOPATH/src/github.com/FactomProject/enterprise-wallet/electron-wrapper/dist/mac ; fi
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: bx/jcalkNDA/g/eQEpPg+cyswXT29hZABMrnYUQUTKEjvoA7HBlU1Iox6HVJ5V6gRuQmDUDO/04duXeWej4LVIkTjf4aNK07TWsSJVE/PNJD5OFSFc4rGost0i8L95au0EyAz4L0j7ZyZ4JGUYa5xXFfBIjqbMfZid/0ax2HFrGvrQWB1TPvz93ps3PffjR78NGifYj+YLZzG+qwF0ODCtd0TN2QsUKZa108bscSPI0K8wqoSIdQZvOfCBfxXD7dGIwQyj3qMpAoLazdvK/Aemn/4Wzhr9qF20pHjzWyOnhn9+L/Fv06arns42/xop6aaL8yeMbFO9ymCqUPgFS5IwjGAD1sLNZpLnqyJTHewjLLErc1wnOOokomNiZwoo1uDpyGqUD/9jb2lYF2I/QhCR6XRhT+FqeRbwoIKTygoF2wvs5Ro3Kq2k513SV415zvNxJUPI8BXM6I6cQEJvM32dtpEvA5dLAVUsi0/AX1KnGWL8P4BAQopD1Tpbx/ttqh9wzS4ekjqHZD2Bi/Ym+hnx+C2+UwLVuQEFAhQsRdaGJlahrOovRLd4vGqmkMIEKp8Km5xmlbv+P3nJBsOq5/SmzNdPGAusYw7lFil/QPmOII0wgwk0hMwUqRKZptIIs5N+SQuWnOjPZvn1Dl61YAktx0bp6n/9hdGJsshrNdAMk=
file_glob: true
file:
- "$GOPATH/src/github.com/FactomProject/enterprise-wallet/electron-wrapper/dist/mac/*.dmg"
- "$GOPATH/src/github.com/FactomProject/enterprise-wallet/electron-wrapper/dist/*.deb"
- "$GOPATH/src/github.com/FactomProject/enterprise-wallet/electron-wrapper/dist/*.zip"
- "$GOPATH/src/github.com/FactomProject/enterprise-wallet/electron-wrapper/dist/*.exe"
on:
tags: true
# repo: FactomProject/enterprise-wallet # Switch to this from tags to always build for the last release

0 comments on commit 3fea8d8

Please sign in to comment.