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