lbry-desktop/appveyor.yml

56 lines
1.3 KiB
YAML
Raw Normal View History

2017-02-10 20:11:26 +01:00
# Test against the latest version of this Node.js version
environment:
nodejs_version: "6"
2017-02-21 04:00:54 +01:00
GH_TOKEN:
secure: LiI5jyuHUw6XbH4kC3gP1HX4P/v4rwD/gCNtaFhQu2AvJz1/1wALkp5ECnIxRySN
2017-02-21 04:15:16 +01:00
skip_branch_with_pr: true
2017-02-10 20:11:26 +01:00
clone_folder: C:\projects\lbry-electron
# Install scripts. (runs after repo cloning)
install:
# needed to deal with submodules
- git submodule update --init --recursive
2017-03-13 16:46:37 +01:00
- python build\set_version.py
- python build\set_build.py
2017-02-10 20:11:26 +01:00
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install
- cd app
- npm install
- cd ..
2017-03-16 00:58:36 +01:00
# create daemon and cli executable
- cd daemon
2017-02-10 20:11:26 +01:00
- ps: .\build.ps1
- cd ..
# build ui
2017-03-09 18:31:07 +01:00
- cd ui
2017-02-10 20:11:26 +01:00
- npm install
- node_modules\.bin\node-sass --output dist\css --sourcemap=none scss\
- node_modules\.bin\webpack
- ps: Copy-Item dist ..\app\ -recurse
- cd ..
2017-03-16 00:58:36 +01:00
# copy executables into ui
- ps: Copy-Item daemon\dist\lbrynet-daemon.exe app\dist
- ps: Copy-Item daemon\dist\lbrynet-cli.exe app\dist
2017-02-10 20:11:26 +01:00
build_script:
# build electron app
- node_modules\.bin\build -p never
# for debugging, see what was built
2017-03-13 16:46:37 +01:00
- python build\zip_daemon.py
2017-02-10 20:11:26 +01:00
- dir dist
2017-03-13 17:54:42 +01:00
- pip install -r build\requirements.txt
2017-03-13 16:46:37 +01:00
- python build\release_on_tag.py
2017-02-10 20:11:26 +01:00
test: off
artifacts:
2017-02-17 21:13:55 +01:00
- path: dist\*.exe
2017-02-10 20:11:26 +01:00
name: LBRY
- path: dist\*.zip
name: lbrynet-daemon