Commented out check for sudo as it was failing on Travis-CI Updated version of Ruby to 2.3.3 Reorder install so Ruby gets installed before installing PS as Homebrew relies on Ruby 2.3 Remove sudo check which breaks Travis-CI
45 lines
918 B
YAML
45 lines
918 B
YAML
language: cpp
|
|
|
|
git:
|
|
depth: 1000
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
sudo: required
|
|
dist: trusty
|
|
osx_image: xcode8.1
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
|
|
addons:
|
|
artifacts:
|
|
paths:
|
|
- $(ls powershell*{deb,pkg,AppImage} | tr "\n" ":")
|
|
- pester-tests.xml
|
|
|
|
install:
|
|
# Default 2.0.0 Ruby is buggy
|
|
# Default bundler version is buggy
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
rvm install ruby-2.3.3;
|
|
rvm --default use 2.3.3;
|
|
fi
|
|
- pushd tools
|
|
- ./install-powershell.sh
|
|
- popd
|
|
# spellcheck
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
nvm install 6.4.0 &&
|
|
npm install -g markdown-spellcheck@0.11.0;
|
|
fi
|
|
- ulimit -n 4096
|
|
- powershell -File tools/travis.ps1 -Bootstrap
|
|
|
|
script:
|
|
- powershell -File tools/travis.ps1
|
|
# spellcheck
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
mdspell '**/*.md' '!powershell/**/*.md' --ignore-numbers --ignore-acronyms --report;
|
|
fi
|