Skip to content

Instantly share code, notes, and snippets.

@dleidert

dleidert/travis_yml.md

Last active May 25, 2021
Embed
What would you like to do?
Build a NSIS-based installer on Windows using travis-ci.org

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
@avancinirodrigo

This comment has been minimized.

Copy link

@avancinirodrigo avancinirodrigo commented Sep 2, 2020

Hi,
Thank you for sharing.
I was stuck with that.
It doesn't need to add NSIS in PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment