-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add travis Pipeline: Merge pull request #3 from wwu-mmll/feature/add_…
…deployment Feature: add deployment
- Loading branch information
Showing
3 changed files
with
109 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "photonai-explorer-serv"] | ||
path = photonai-explorer-serv | ||
url = https://github.com/wwu-mmll/photonai-explorer-serv.git |
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
language: node_js | ||
os: linux | ||
dist: bionic | ||
jobs: | ||
include: | ||
- language: node_js | ||
if: tag IS NOT present | ||
os: linux | ||
dist: bionic | ||
node_js: 12 | ||
install: | ||
- npm install | ||
script: | ||
- npm run lint | ||
- npm run build | ||
- language: go | ||
if: tag IS present | ||
os: linux | ||
dist: bionic | ||
go: 1.14.x | ||
node_js: 12 | ||
before_install: | ||
- eval "$(ssh-agent -s)" | ||
- echo $SSHKEY | base64 -d > /tmp/sshkey | ||
- chmod 600 /tmp/sshkey | ||
- ssh-add /tmp/sshkey | ||
- sudo apt update | ||
- sudo apt-get -y install gcc libgtk-3-dev libappindicator3-dev webkit2gtk-4.0 | ||
install: | ||
- npm install | ||
- go get -u github.com/gobuffalo/packr/packr | ||
- go get -u github.com/akavel/rsrc | ||
script: | ||
- npm run lint | ||
- npm run build | ||
- cd photonai-explorer-serv/ | ||
- rm -r ./dist/ | ||
- cp -r ../dist/ ./dist/ | ||
- "$GOPATH/bin/packr" | ||
- go build -o photonai-explorer . | ||
- tar cfvz photonai-explorer_${TRAVIS_TAG}_linux_amd64.tar.gz photonai-explorer | ||
- rsrc -manifest photonai_explorer.manifest | ||
- env GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" -o PHOTONAI-Explorer.exe . | ||
- zip photonai-explorer_${TRAVIS_TAG}_windows_amd64.zip PHOTONAI-Explorer.exe | ||
deploy: | ||
- provider: releases | ||
api_key: | ||
secure: LfhYBIZGbVcBB7+M6KKMO2TwP5EJ4SHZZVxmYi0dyehoUvFPL7g09fpLyKzfCx85Rts3yjWcpgkKTNZsoVv3TNn6qEEKV6pXw3DJXoIB+owSuzMgLHEFWAh0cDtfzLsoN9Y+d2Qb/EVEwhmb7id91i1jCgZAlm/HnHwEXQhb1sqgHIeC/QICoQJxLc7uur5e+pjC818X96yWHEKKm8acNJV/vFNmKow7sjA1MT8iUPZo8N8D3MLXM+s23/5nT0+om4/b3/Wb6bPBcx2QNY9V5mtnPvVt3H7P1amlHea+N2JMQMQFAdMmK0JchmGpP9YCB3vQk+/aTwNN53gnKCk1b8AUO9P7QqujVkmQq5faecn8PFuDlVLzX+n97vQZgGza6JG4VqP9BS0kiRncYF1j/UVeIZ1nOZ+MvFAuVWtOo08No5jvpVLeM8p9hKf1qL8PUjrINSqX1OPgF4c3K4b9KIDR66rTQbkY3mJRV5tno5xrTuxZAZZiJXjdIZwDkMhZSF7QcXrLLTYFFTBoNi6EGjdi8Co8qiLWK6CEfaembi3ssCSzwNhnLqM7N1LJJwjJvenAH4Ea8UVxrmfnxKaYhlcpJvyddmhO/JgR2ERN9w5PVUbnmix6TCzbB/5jjYn8bF0aovoYGSZvjjo87LlSS6dugyiQNpShkO834t2It34= | ||
file: | ||
- "$TRAVIS_BUILD_DIR/photonai-explorer-serv/photonai-explorer_${TRAVIS_TAG}_linux_amd64.tar.gz" | ||
- "$TRAVIS_BUILD_DIR/photonai-explorer-serv/photonai-explorer_${TRAVIS_TAG}_windows_amd64.zip" | ||
on: | ||
repo: wwu-mmll/photonai-explorer | ||
tags: true | ||
skip_cleanup: 'true' | ||
draft: 'true' | ||
- provider: script | ||
script: "rsync -av -e 'ssh -o StrictHostKeyChecking=no -o LogLevel=ERROR' $TRAVIS_BUILD_DIR/dist/ $SSHUSER@$SSHSERVER:/" | ||
on: | ||
repo: wwu-mmll/photonai-explorer | ||
tags: true | ||
skip_cleanup: 'true' | ||
- language: go | ||
if: tag IS present | ||
os: osx | ||
go: 1.14.x | ||
node_js: 12 | ||
addons: | ||
homebrew: | ||
packages: | ||
- graphicsmagick | ||
- imagemagick | ||
update: true | ||
before_install: | ||
- eval "$(ssh-agent -s)" | ||
- echo $SSHKEY | base64 -D > /tmp/sshkey | ||
- chmod 600 /tmp/sshkey | ||
- ssh-add /tmp/sshkey | ||
- npm install --global create-dmg | ||
install: | ||
- npm install | ||
- go get -u github.com/gobuffalo/packr/packr | ||
script: | ||
- npm run lint | ||
- npm run build | ||
- cd photonai-explorer-serv/ | ||
- rm -r ./dist/ | ||
- cp -r ../dist/ ./dist/ | ||
- "$GOPATH/bin/packr" | ||
- go build -o ./.build-mac/PHOTONAI\ Explorer.app/Contents/MacOS/photonai_explorer_mac . | ||
- cd ./.build-mac/ | ||
- create-dmg PHOTONAI\ Explorer.app || a=$?; if [ $a -eq 2 ]; then return 0; else return $a; fi | ||
- mv *.dmg photonai-explorer_${TRAVIS_TAG}_macos_amd64.dmg | ||
deploy: | ||
- provider: releases | ||
api_key: | ||
secure: LfhYBIZGbVcBB7+M6KKMO2TwP5EJ4SHZZVxmYi0dyehoUvFPL7g09fpLyKzfCx85Rts3yjWcpgkKTNZsoVv3TNn6qEEKV6pXw3DJXoIB+owSuzMgLHEFWAh0cDtfzLsoN9Y+d2Qb/EVEwhmb7id91i1jCgZAlm/HnHwEXQhb1sqgHIeC/QICoQJxLc7uur5e+pjC818X96yWHEKKm8acNJV/vFNmKow7sjA1MT8iUPZo8N8D3MLXM+s23/5nT0+om4/b3/Wb6bPBcx2QNY9V5mtnPvVt3H7P1amlHea+N2JMQMQFAdMmK0JchmGpP9YCB3vQk+/aTwNN53gnKCk1b8AUO9P7QqujVkmQq5faecn8PFuDlVLzX+n97vQZgGza6JG4VqP9BS0kiRncYF1j/UVeIZ1nOZ+MvFAuVWtOo08No5jvpVLeM8p9hKf1qL8PUjrINSqX1OPgF4c3K4b9KIDR66rTQbkY3mJRV5tno5xrTuxZAZZiJXjdIZwDkMhZSF7QcXrLLTYFFTBoNi6EGjdi8Co8qiLWK6CEfaembi3ssCSzwNhnLqM7N1LJJwjJvenAH4Ea8UVxrmfnxKaYhlcpJvyddmhO/JgR2ERN9w5PVUbnmix6TCzbB/5jjYn8bF0aovoYGSZvjjo87LlSS6dugyiQNpShkO834t2It34= | ||
file: | ||
- "$TRAVIS_BUILD_DIR/photonai-explorer-serv/.build-mac/photonai-explorer_${TRAVIS_TAG}_macos_amd64.dmg" | ||
on: | ||
repo: wwu-mmll/photonai-explorer | ||
tags: true | ||
skip_cleanup: 'true' | ||
draft: 'true' | ||
|
Submodule photonai-explorer-serv
added at
2967f7