I've recently found a way to test build a NSIS-based installer project on a Windows host on https://travis-ci.org. I had to figure out quite a bit how to run the makensis
command there and how to set the PATH
environment variable. But now that it works, let me share my configuration file .travis.yml
with you:
language: shell
sudo: false
notifications:
email:
on_success: never
matrix:
fast_finish: true
include:
- os: linux
dist: xenial
addons:
apt:
update: true
packages: nsis
install: true
script: makensis -V3 myScript.nsi
- os: windows
filter_secrets: false
env: PATH="/c/Program Files (x86)/NSIS/:/c/Program Files/NSIS/:$PATH"
install: choco install nsis -y
script: makensis -V3 myScript.nsi
Hi,
Thank you for sharing.
I was stuck with that.
It doesn't need to add NSIS in PATH.