Skip to content

Commit

Permalink
Reformats YAML files
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed May 8, 2020
1 parent d58daec commit a5293ad
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 44 deletions.
26 changes: 14 additions & 12 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# yamllint disable rule:line-length
---
init:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
install:
- appveyor DownloadFile https://github.com/EA31337/MT-Platforms/releases/download/5.0.0.2361/mt-5.0.0.2361.zip && unzip -q *.zip && cp -v */metaeditor*.exe .
- scoop install ruby python
- appveyor DownloadFile https://github.com/EA31337/MT-Platforms/releases/download/5.0.0.2361/mt-5.0.0.2361.zip && unzip -q *.zip && cp -v */metaeditor*.exe .
- scoop install ruby python
before_test:
- chcp
- ruby --version
- git submodule update --init
- chcp
- ruby --version
- git submodule update --init
test_script:
- metaeditor64 /s /compile:. /log:mql.log || exit /b 0
- type mql.log
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9] error'.encode(Encoding::UTF_16LE)) {exit 1}; end"
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9] warning'.encode(Encoding::UTF_16LE)) {exit 1}; end"
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9][0-9] error'.encode(Encoding::UTF_16LE)) {exit 1}; end"
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9][0-9] warning'.encode(Encoding::UTF_16LE)) {exit 1}; end"
- metaeditor64 /s /compile:. /log:mql.log || exit /b 0
- type mql.log
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9] error'.encode(Encoding::UTF_16LE)) {exit 1}; end"
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9] warning'.encode(Encoding::UTF_16LE)) {exit 1}; end"
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9][0-9] error'.encode(Encoding::UTF_16LE)) {exit 1}; end"
- ruby -e "if File.open('mql.log', mode:'rb:BOM|UTF-16LE').readlines.grep(Regexp.new '[1-9][0-9] warning'.encode(Encoding::UTF_16LE)) {exit 1}; end"
build: off
platform: x86
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# yamllint disable rule:line-length
---
name: Lint
on:
- pull_request
- push
jobs:
YAML:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: YAML check (yamllint)
uses: ibiqlik/action-yamllint@master
with:
strict: true
MQL:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: DoozyX/[email protected]
with:
extensions: 'h'
11 changes: 11 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
extends: default

rules:
line-length:
max: 120
level: warning
truthy:
ignore: |
?appveyor.yml
.github/workflows/*.yml
61 changes: 29 additions & 32 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
---
version: '3'
services:

RunCompileMql:
command: compile /opt/src mql.log
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
# - ../../EA-Tester/scripts:/opt/scripts

- ../:/opt/src
AccountTest:
command: run_backtest -e AccountTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -21,7 +20,7 @@ services:
command: run_backtest -e ActionTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -30,7 +29,7 @@ services:
command: run_backtest -e BufferTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -39,14 +38,14 @@ services:
command: run_backtest -s CollectionTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
OPT_VERBOSE: 1
ConditionTest:
command: run_backtest -e ConditionTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -55,29 +54,28 @@ services:
command: run_backtest -s ConfigTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
OPT_VERBOSE: 1
ConvertTest:
command: run_backtest -s ConvertTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
# - ../../EA-Tester/scripts:/opt/scripts
- ../:/opt/src
environment:
OPT_VERBOSE: 1
DictTest:
command: run_backtest -s DictTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
OPT_VERBOSE: 1
DrawIndicatorTest:
command: run_backtest -e DrawIndicatorTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -86,15 +84,14 @@ services:
command: run_backtest -e IndicatorTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
# - ../../EA-Tester/scripts:/opt/scripts
- ../:/opt/src
environment:
OPT_VERBOSE: 1
IndicatorDataTest:
command: run_backtest -e IndicatorDataTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -103,7 +100,7 @@ services:
command: run_backtest -e IndicatorsTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -112,14 +109,14 @@ services:
command: run_backtest -s LogTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
OPT_VERBOSE: 1
MailTest:
command: run_backtest -e MailTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -128,7 +125,7 @@ services:
command: run_backtest -e MarketTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -137,7 +134,7 @@ services:
command: run_backtest -e OrderTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -146,12 +143,12 @@ services:
command: run_backtest -s ProfilerTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
- ../:/opt/src
StatsTest:
command: run_backtest -e StatsTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -160,7 +157,7 @@ services:
command: run_backtest -e StrategyTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -169,7 +166,7 @@ services:
command: run_backtest -e SummaryReportTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
OPT_VERBOSE: 1
BT_DAYS: 10-12
Expand All @@ -178,7 +175,7 @@ services:
command: run_backtest -e SymbolInfoTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -187,7 +184,7 @@ services:
command: run_backtest -e TaskTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -196,12 +193,12 @@ services:
command: run_backtest -s TerminalTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
- ../:/opt/src
TickerTest:
command: run_backtest -e TickerTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -210,12 +207,12 @@ services:
command: run_backtest -s TimerTest.mq4
image: ea31337/ea-tester:latest
volumes:
- ../:/opt/src
- ../:/opt/src
TradeTest:
command: run_backtest -e TradeTest.mq4
image: ea31337/ea-tester:EURUSD-2018-DS
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
BT_DAYS: 10-12
BT_MONTHS: 1
Expand All @@ -224,6 +221,6 @@ services:
command: run_backtest -s WebTest.mq4
image: ea31337/ea-tester:dev
volumes:
- ../:/opt/src
- ../:/opt/src
environment:
EA_WHITELIST_URLS: http://example.com/;https://example.com/

0 comments on commit a5293ad

Please sign in to comment.