thedesk/.travis.yml

47 lines
2.7 KiB
YAML
Raw Normal View History

2019-06-14 01:59:33 +10:00
os:
- windows
- linux
- osx
2019-04-13 00:29:30 +10:00
language: node_js
node_js:
- '10.15.2'
2019-04-13 00:39:28 +10:00
script: node -v
2019-02-01 03:30:25 +11:00
before_deploy:
2019-02-05 13:33:32 +11:00
- npm install electron-builder -g
2019-04-13 00:19:27 +10:00
- cd app
2019-05-27 03:28:08 +10:00
- VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
2019-01-27 23:32:35 +11:00
- npm install
2019-05-27 01:41:34 +10:00
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
2019-05-27 01:45:26 +10:00
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux --x64 -p never;else :;fi
2019-05-27 02:18:44 +10:00
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../build;else :;fi
2019-05-27 02:24:00 +10:00
- if [ "$TRAVIS_OS_NAME" = "linux" ];then ls;else :;fi
2019-05-27 02:18:44 +10:00
- if [ "$TRAVIS_OS_NAME" = "linux" ];then mv thedesk-*.zip thedesk.zip;else :;fi
2019-05-27 02:40:07 +10:00
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../app;else :;fi
2019-05-27 01:45:26 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then electron-builder --win --ia32 -p never;else :;fi
2019-05-27 02:17:15 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../build;else :;fi
2019-05-27 02:24:00 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then ls;else :;fi
2019-05-27 02:17:15 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then mv TheDesk-setup.exe TheDesk-setup-ia32.exe;else :;fi
2019-05-27 03:40:48 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then mv *$VERSION.exe TheDesk-ia32.exe;else :;fi
2019-05-27 02:17:15 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../app;else :;fi
2019-05-27 01:45:26 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then electron-builder --win --x64 -p never;else :;fi
2019-05-27 02:17:15 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../build;else :;fi
2019-05-27 02:34:26 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then ls;else :;fi
2019-05-27 01:22:50 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then mv ../build/TheDesk-setup.exe ../build/TheDesk-setup.exe;else :;fi
2019-05-27 03:19:09 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then mv ../build/*$VERSION.exe ../build/TheDesk.exe;else :;fi
2019-05-27 02:17:15 +10:00
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../app;else :;fi
2019-05-26 22:46:26 +10:00
- cd ../
2019-05-26 23:56:37 +10:00
- ls build
2019-01-27 23:07:11 +11:00
deploy:
provider: releases
2019-04-13 00:19:27 +10:00
# GitHub にリリースするための API KEY を暗号化した値
2019-01-27 23:07:11 +11:00
api_key:
secure: jndR02p5KRTtcJk18b3YsXL2cC+yzEf1AOqXdpWciF8f3lO5oY01jlxd17xdHIcK7VywSsLVZpLToSdqAoIEhJ5OxEQ/FmA3FlmbwwD6ou13gLa4VGIvsBHveCmKGjVu0Z++atIy76tZYU1SOWFWv4B0ZhnVz2ca2VZynvLgw3YNsPJH7rHO966GXgRkGYJAJ4UvLg3sj/iztVh2FSfbUj5IGO1e/JHJO63wAo1MSQtRjkutVgl/djnBLC6vbL4YHkM3Ynpkx/YQEcxwrmeY0Ra8D5yYDq4MNIDMmZahWC+k4u2eA2Cj2ifBFNxbZvTN75vLwRBp6DsTNHsiqkXrSPDBdNeet31RbwTQ6LtsK8jqmL4S/59dmLcj7uCU2WxyBLPbJdbdZWlqW2ZQvfQY8QVAYy7S3MiHQWQN0oP5wqXk89jcgR42ig/zsqFNPpXHM4mExR7l/gDLPg0j9c3XEF6sWtk3FmJN1i4+B+9kn09b6UKlV7EFPKp8XcFNrz4ZcE9/I8lKwsqLVG2jAXIk7Z9LwDRcAmK5eG348X5zwFtOY6raKIvRw2cn92bPnEI+55v8A4WANS2647GFTgxHj30D0d/sOZmJ5BS34zpdWTgE0AlKg7sOqkncjqoW5J5zCh5Ow7b3KXvEvlAts44mAag8tZTectxMP4iguXvTnv4=
2019-04-13 00:19:27 +10:00
# Releases ページにアップロードするファイル
2019-05-26 23:22:45 +10:00
file_glob: true
2019-04-13 00:19:27 +10:00
file:
2019-05-26 23:16:16 +10:00
- build/*
2019-04-13 00:19:27 +10:00
skip_cleanup: true
2019-01-27 23:07:11 +11:00
on:
2019-04-14 19:58:12 +10:00
repo: cutls/TheDesk
2019-06-14 01:59:33 +10:00
tags: true
2019-05-26 21:49:49 +10:00
all_branches: true