-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
3,787 additions
and
4,317 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
/node_modules | ||
/dist | ||
/releases |
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,38 @@ | ||
sudo: false | ||
|
||
# Define Node.js as the programming language as we have a web application | ||
language: node_js | ||
node_js: | ||
- node | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
env: | ||
global: | ||
- ELECTRON_CACHE=$HOME/.cache/electron | ||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- $HOME/.cache/electron | ||
- $HOME/.cache/electron-builder | ||
- $HOME/.npm/_prebuilds | ||
|
||
before_cache: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rm -rf $HOME/.cache/electron-builder/wine; fi | ||
|
||
install: | ||
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yarn; fi | ||
- yarn | ||
- yarn build | ||
- echo "Deploy linux version to GitHub" | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then yarn release:linux; fi | ||
|
||
- echo "Deploy windows version to GitHub" | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn release:win; fi | ||
|
||
- echo "Deploy mac version to GitHub" | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn release:mac; fi |
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,13 @@ | ||
appId: obcode | ||
artifactName: "${productName}-${os}-${arch}-${version}.${ext}" | ||
asar: true | ||
compression: maximum | ||
copyright: "Copyright © Oliver Braun" | ||
directories: | ||
output: releases | ||
files: | ||
- "dist/" | ||
- "static/" | ||
- "node_modules/" | ||
- "package.json" | ||
productName: Elexams |
Oops, something went wrong.