Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Travis CI: Add windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Justsnoopy30 committed Mar 4, 2020
1 parent 52dc873 commit fdfb478
Showing 1 changed file with 43 additions and 12 deletions.
55 changes: 43 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,44 @@ language: node_js
node_js:
- node
os:
- linux
- windows
- osx
- linux
jobs:
include:
- os: linux
dist: bionic
- os: windows
install:
- npm install
- npm update

script:
- electron-forge make

before_deploy:
- echo "$TRAVIS_BUILD_NUMBER" "$TRAVIS_COMMIT"
- git config --local user.name "$USER_NAME"
- git config --local user.email "$USER_EMAIL"
- git tag "$TRAVIS_BUILD_NUMBER" "$TRAVIS_COMMIT"
- ls -R ./out/

deploy:
provider: releases
token: $GITHUB_TOKEN
file:
- ./out/make/zip/linux/x64/HyperChat-linux-x64-1.0.0.zip
on:
repo: hypercubemc-github/HyperChat-Electron-App
tag_name: $TRAVIS_BUILD_NUMBER
target_commitish: $TRAVIS_COMMIT
name: HyperChat Electron App Build $TRAVIS_BUILD_NUMBER
edge: true

cache:
directories:
- node_modules
- $HOME/.cache/electron
- os: osx
osx_image: xcode11.3
addons:
apt:
packages:
Expand All @@ -20,6 +52,7 @@ jobs:
install:
- npm install
- npm update
- npm install --save-dev macos-alias

script:
- electron-forge make
Expand All @@ -34,9 +67,8 @@ jobs:
provider: releases
token: $GITHUB_TOKEN
file:
- ./out/make/zip/linux/x64/HyperChat-linux-x64-1.0.0.zip
- ./out/make/deb/x64/hyperchat_1.0.0_amd64.deb
- ./out/make/rpm/x64/HyperChat-1.0.0-1.x86_64.rpm
- ./out/make/HyperChat-1.0.0.dmg
- ./out/make/zip/darwin/x64/HyperChat-darwin-x64-1.0.0.zip
on:
repo: hypercubemc-github/HyperChat-Electron-App
tag_name: $TRAVIS_BUILD_NUMBER
Expand All @@ -48,9 +80,8 @@ jobs:
directories:
- node_modules
- $HOME/.cache/electron

- os: osx
osx_image: xcode11.3
- os: linux
dist: bionic
addons:
apt:
packages:
Expand All @@ -62,7 +93,6 @@ jobs:
install:
- npm install
- npm update
- npm install --save-dev macos-alias

script:
- electron-forge make
Expand All @@ -77,8 +107,9 @@ jobs:
provider: releases
token: $GITHUB_TOKEN
file:
- ./out/make/HyperChat-1.0.0.dmg
- ./out/make/zip/darwin/x64/HyperChat-darwin-x64-1.0.0.zip
- ./out/make/zip/linux/x64/HyperChat-linux-x64-1.0.0.zip
- ./out/make/deb/x64/hyperchat_1.0.0_amd64.deb
- ./out/make/rpm/x64/HyperChat-1.0.0-1.x86_64.rpm
on:
repo: hypercubemc-github/HyperChat-Electron-App
tag_name: $TRAVIS_BUILD_NUMBER
Expand Down

0 comments on commit fdfb478

Please sign in to comment.