forked from QuantConnect/Lean.Brokerages.Atreyu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis.yml
23 lines (23 loc) · 1.34 KB
/
travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sudo: required
language: csharp
mono:
- 5.12.0
solution: Brokerages.Atreyu.sln
before_install:
- echo Will try to use branch ${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}
- QC_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}
- git ls-remote --exit-code --heads https://github.com/QuantConnect/Lean.git $QC_BRANCH && git clone --branch=$QC_BRANCH https://github.com/QuantConnect/Lean.git $TRAVIS_BUILD_DIR/../Lean || git clone https://github.com/QuantConnect/Lean.git $TRAVIS_BUILD_DIR/../Lean
- export PATH="$HOME/miniconda3/bin:$PATH"
- wget https://cdn.quantconnect.com/miniconda/Miniconda3-4.5.12-Linux-x86_64.sh
- bash Miniconda3-4.5.12-Linux-x86_64.sh -b
- rm -rf Miniconda3-4.5.12-Linux-x86_64.sh
- sudo ln -s $HOME/miniconda3/lib/libpython3.6m.so /usr/lib/libpython3.6m.so
- conda update -y python conda pip
- conda install -y python=3.6.8
install:
- nuget restore ../Lean/QuantConnect.Lean.sln -v quiet
- nuget restore Atreyu.sln -v quiet
- nuget install NUnit.Runners -Version 3.11.1 -OutputDirectory testrunner
script:
- msbuild /p:Configuration=Release /p:VbcToolExe=vbnc.exe /v:quiet /p:WarningLevel=1 Atreyu.sln
- mono ./testrunner/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe ./Tests/bin/Release/QuantConnect.Atreyu.Tests.dll --where "cat != TravisExclude" --labels=Off --params:log-handler=ConsoleErrorLogHandler