Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from FactomProject/full-deploy
Full deploy
- Loading branch information
Showing
4 changed files
with
3,443 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.