2016-01-22 22:31:57 +01:00
|
|
|
language: cpp
|
2016-07-18 19:11:04 +02:00
|
|
|
|
2016-08-30 04:26:15 +02:00
|
|
|
git:
|
|
|
|
depth: 1000
|
|
|
|
|
2016-09-23 00:09:26 +02:00
|
|
|
matrix:
|
2017-11-28 02:29:04 +01:00
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode8.1
|
2016-09-23 00:09:26 +02:00
|
|
|
fast_finish: true
|
|
|
|
|
2016-07-05 20:59:51 +02:00
|
|
|
addons:
|
|
|
|
artifacts:
|
2017-02-09 23:01:54 +01:00
|
|
|
paths:
|
2017-11-11 02:28:55 +01:00
|
|
|
- $(ls powershell*{deb,pkg,AppImage,gz} | tr "\n" ":")
|
2017-01-17 22:43:48 +01:00
|
|
|
- pester-tests.xml
|
2016-07-18 21:21:55 +02:00
|
|
|
|
2016-07-05 20:59:51 +02:00
|
|
|
install:
|
2017-10-09 22:23:29 +02:00
|
|
|
# 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
|
2017-12-06 21:20:44 +01:00
|
|
|
# Ensure that libcurl+openssl is used on macOS for greater feature support.
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
export DYLD_LIBRARY_PATH=/usr/local/opt/curl/lib:/usr/local/opt/openssl/lib:${DYLD_LIBRARY_PATH};
|
|
|
|
fi
|
2016-09-03 01:32:06 +02:00
|
|
|
- pushd tools
|
2017-07-21 23:20:51 +02:00
|
|
|
- ./install-powershell.sh
|
2016-09-03 01:32:06 +02:00
|
|
|
- popd
|
2016-10-31 05:01:57 +01:00
|
|
|
# spellcheck
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
nvm install 6.4.0 &&
|
|
|
|
npm install -g markdown-spellcheck@0.11.0;
|
|
|
|
fi
|
2017-07-14 06:21:32 +02:00
|
|
|
- ulimit -n 4096
|
2017-10-27 20:35:40 +02:00
|
|
|
- pwsh -File tools/travis.ps1 -Stage Bootstrap
|
2016-07-18 21:21:55 +02:00
|
|
|
|
2016-10-28 10:02:32 +02:00
|
|
|
script:
|
2017-10-25 17:25:35 +02:00
|
|
|
- pwsh -File tools/travis.ps1
|
2016-10-28 10:02:32 +02:00
|
|
|
# spellcheck
|
2017-12-06 21:11:01 +01:00
|
|
|
# Ignore 'Pester' folder because it's third party
|
2016-10-28 10:02:32 +02:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2017-12-06 21:11:01 +01:00
|
|
|
mdspell '**/*.md' '!**/Pester/**/*.md' --ignore-numbers --ignore-acronyms --report;
|
2016-10-28 17:02:29 +02:00
|
|
|
fi
|
2017-10-27 20:35:40 +02:00
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- pwsh -File tools/travis.ps1 -Stage Failure
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- pwsh -File tools/travis.ps1 -Stage Success
|