Quick caveat, I’m brand new to Travis-CI, and don’t have much YAML experience. I’ve picked up an open source project that already has a linux build, and I’m trying to add a windows build set to it as well.
This config is not getting me what I want… e.g. the if statements down on the node_js section don’t seem to be having any effect, I don’t want to target some node_js versions for windows. I’m still researching this a bit, but thought the community might shine some quick answers.
language: node_js
os:
- linux
- windows
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libudev-dev
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://github.com/OpenZWave/open-zwave/archive/master.zip ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then unzip master.zip ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd open-zwave-master ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo make install ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ldconfig /usr/local/lib /usr/local/lib64 ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then npm install -g node-gyp ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd .. ; fi
node_js:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then "0.12" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then "4" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then "6" ; fi
- "8"
- "10"
- "11"
- "12"
Thanks in advance.