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" ":")
|
2018-02-16 20:13:23 +01:00
|
|
|
- TestResultsSudo.xml
|
|
|
|
- TestResultsNoSudo.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
|
2018-01-24 22:56:42 +01:00
|
|
|
|
2018-05-21 23:18:56 +02:00
|
|
|
# travis-ci will quit using the cache if an enviroment variable changes.
|
|
|
|
# CACHE_VERSION is not used for anything other than invalidating the cache.
|
2018-01-24 22:56:42 +01:00
|
|
|
env:
|
2018-04-13 19:29:39 +02:00
|
|
|
global:
|
2018-05-21 23:18:56 +02:00
|
|
|
- CACHE_VERSION=netcoreapp.2.1-sdk.2.1.300-rc1-2
|
2018-04-13 19:29:39 +02:00
|
|
|
- POWERSHELL_TELEMETRY_OPTOUT=1
|
2018-01-24 22:56:42 +01:00
|
|
|
|
|
|
|
# timeout uploading cache after 6 minutes (360 seconds)
|
|
|
|
cache:
|
|
|
|
timeout: 360
|
|
|
|
directories:
|
|
|
|
- $HOME/.nuget
|
|
|
|
- $HOME/.dotnet
|
|
|
|
- $HOME/Library/Caches/Homebrew
|
2018-05-21 23:18:56 +02:00
|
|
|
# cleanup data that should not be cache, before caching
|
|
|
|
before_cache:
|
|
|
|
- rm -r -f $HOME/.dotnet/optimizationdata
|
|
|
|
- rm -r -f $HOME/.dotnet/pids
|