forked from miketout/Agama
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Asher-Dev' into master
- Loading branch information
Showing
7 changed files
with
122 additions
and
4,614 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,114 @@ | ||
stages: | ||
- build | ||
- deploy | ||
variables: | ||
DOCKER_DRIVER: overlay2 | ||
AGAMA_VERSION: $(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json) | ||
PKG_VERSION: $AGAMA_VERSION-beta | ||
EASYDEX_GUI_ARTIFACT: build.tar.gz | ||
AGAMA_ARTIFACTS_LINUX: linux64.tar.gz | ||
AGAMA_ARTIFACTS_MACOS: osx.tar.gz | ||
AGAMA_ARTIFACTS_WINDOWS: win64.zip | ||
ELECTRON_BUILD_LINUX: Agama-linux-x64 | ||
ELECTRON_BUILD_WINDOWS: Agama-win32-x64 | ||
ELECTRON_BUILD_OSX: Agama-darwin-x64 | ||
AGAMA_LINUX_PORTABLE: ${ELECTRON_BUILD_LINUX}-v${AGAMA_VERSION}-beta.tar.gz | ||
AGAMA_WINDOWS_PORTABLE: ${ELECTRON_BUILD_WINDOWS}-v${AGAMA_VERSION}-beta.zip | ||
AGAMA_OSX_PORTABLE: ${ELECTRON_BUILD_OSX}-v${AGAMA_VERSION}-beta.tar.gz | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
|
||
build:linux: | ||
image: asherd/agama-builder | ||
stage: build | ||
before_script: | ||
- 'echo "$AUTH_KEY" > AUTH_KEY.json' | ||
- "gcloud auth activate-service-account --key-file AUTH_KEY.json" | ||
- "gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT ." | ||
- "tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react" | ||
- "rm $EASYDEX_GUI_ARTIFACT" | ||
- "gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/Linux/$AGAMA_ARTIFACTS_LINUX ." | ||
- "mkdir -p assets/bin/" | ||
- "tar -xzf $AGAMA_ARTIFACTS_LINUX --directory assets/bin/ && ls assets/bin" | ||
- "rm $AGAMA_ARTIFACTS_LINUX" | ||
|
||
|
||
script: | ||
- "npm install electron-packager -g" | ||
- "npm install electron -g --unsafe-perm=true" | ||
- "npm install" | ||
- "./buildscripts/electron-build-linux.sh" | ||
- "cd build" | ||
- "tar -czf $AGAMA_LINUX_PORTABLE $ELECTRON_BUILD_LINUX" | ||
- "mv $AGAMA_LINUX_PORTABLE .." | ||
artifacts: | ||
paths: | ||
- $AGAMA_LINUX_PORTABLE | ||
expire_in: 1 week | ||
|
||
build:windows: | ||
stage: build | ||
image: asherd/agama-builder | ||
before_script: | ||
- 'echo "$AUTH_KEY" > AUTH_KEY.json' | ||
- "gcloud auth activate-service-account --key-file AUTH_KEY.json" | ||
- "gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT ." | ||
- "tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react" | ||
- "rm $EASYDEX_GUI_ARTIFACT" | ||
- "gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/Windows/$AGAMA_ARTIFACTS_WINDOWS ." | ||
- "mkdir -p assets/bin/" | ||
- "unzip $AGAMA_ARTIFACTS_WINDOWS -d assets/bin/ && ls assets/bin " | ||
- "rm $AGAMA_ARTIFACTS_WINDOWS" | ||
- "./binary_artifacts_win.sh" | ||
|
||
script: | ||
- "npm install electron-packager -g" | ||
- "npm install electron -g --unsafe-perm=true" | ||
- "npm install" | ||
- "./buildscripts/electron-build-windows.sh" | ||
- "cd build" | ||
- "zip -r $AGAMA_WINDOWS_PORTABLE $ELECTRON_BUILD_WINDOWS" | ||
- "mv $AGAMA_WINDOWS_PORTABLE .." | ||
artifacts: | ||
paths: | ||
- $AGAMA_WINDOWS_PORTABLE | ||
expire_in: 1 week | ||
|
||
build:mac: | ||
stage: build | ||
image: asherd/agama-builder | ||
before_script: | ||
- 'echo "$AUTH_KEY" > AUTH_KEY.json' | ||
- "gcloud auth activate-service-account --key-file AUTH_KEY.json" | ||
- "gsutil cp $STAGING/EasyDEX-GUI/$CI_COMMIT_REF_NAME/$EASYDEX_GUI_ARTIFACT ." | ||
- "tar -xzf $EASYDEX_GUI_ARTIFACT --directory gui/EasyDEX-GUI/react" | ||
- "rm $EASYDEX_GUI_ARTIFACT" | ||
- "gsutil cp $STAGING/VerusCoin/$CI_COMMIT_REF_NAME/MacOS/$AGAMA_ARTIFACTS_MACOS ." | ||
- "mkdir -p assets/bin/" | ||
- "tar -xzf $AGAMA_ARTIFACTS_MACOS --directory assets/bin/ " | ||
- "rm $AGAMA_ARTIFACTS_MACOS" | ||
|
||
script: | ||
- "npm install electron-packager -g" | ||
- "npm install electron -g --unsafe-perm=true" | ||
- "npm install" | ||
- "./buildscripts/electron-build-osx.sh" | ||
- "builder build buildscripts/AgamaApp-osx.xml echo" | ||
- "cd build" | ||
- "tar -czf $AGAMA_OSX_PORTABLE $ELECTRON_BUILD_OSX" | ||
- "mv $AGAMA_OSX_PORTABLE .." | ||
artifacts: | ||
paths: | ||
- $AGAMA_OSX_PORTABLE | ||
expire_in: 1 week | ||
|
||
deploy: | ||
stage: deploy | ||
image: google/cloud-sdk:alpine | ||
dependencies: | ||
- build:linux | ||
- build:windows | ||
- build:mac | ||
script: | ||
- 'echo "$AUTH_KEY" > AUTH_KEY.json' | ||
- "gcloud auth activate-service-account --key-file AUTH_KEY.json" | ||
- "gsutil cp $AGAMA_LINUX_PORTABLE $AGAMA_OSX_PORTABLE $AGAMA_WINDOWS_PORTABLE gs://$BUCKET/GitLab/Agama/$CI_COMMIT_REF_NAME/" |
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
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
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
Oops, something went wrong.