-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/v3.006-dev' into v3.008-dev-new
* origin/v3.006-dev: (109 commits)
- Loading branch information
Showing
868 changed files
with
15,737 additions
and
8,565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
name: Check | ||
|
||
# yamllint disable rule:truthy | ||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
push: | ||
|
@@ -10,6 +10,10 @@ jobs: | |
Pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
- uses: pre-commit/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,50 +4,31 @@ name: Compile C++ | |
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
paths: | ||
- '**.h' | ||
- '**.mq?' | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
paths: | ||
- '**.h' | ||
- '**.mq?' | ||
|
||
jobs: | ||
|
||
FileList: | ||
outputs: | ||
filelist: ${{ steps.get-files.outputs.filelist }} | ||
Compile-Cpp: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set output with list of files | ||
id: get-files | ||
run: | | ||
import glob, json, os | ||
files = glob.glob("**/tests/*.cpp") | ||
print("::set-output name=filelist::{}".format(json.dumps(files))) | ||
shell: python | ||
- name: Display output | ||
run: echo ${{ steps.get-files.outputs.filelist }} | ||
|
||
Compile: | ||
runs-on: ubuntu-latest | ||
needs: [FileList] | ||
strategy: | ||
matrix: | ||
file: ${{ fromJson(needs.FileList.outputs.filelist) }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Emscripten toolchain | ||
uses: mymindstorm/setup-emsdk@v11 | ||
- uses: actions/checkout@v3 | ||
- name: Install CPP compiler | ||
uses: rlalik/[email protected] | ||
with: | ||
compiler: gcc-latest | ||
- name: Compile ${{ matrix.file }} via emcc | ||
if: always() | ||
run: > | ||
emcc -s WASM=1 -s ENVIRONMENT=node -s EXIT_RUNTIME=0 -s NO_EXIT_RUNTIME=1 -s ASSERTIONS=1 -Wall -s | ||
MODULARIZE=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 --bind -s EXPORTED_FUNCTIONS="[]" -g -std=c++17 | ||
"${{ matrix.file }}" | ||
- name: Compile ${{ matrix.file }} via g++ | ||
if: always() | ||
run: g++ -g -std=c++17 -c "${{ matrix.file }}" | ||
- name: Compile via make | ||
run: make | ||
Compile-Emscripten: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Emscripten toolchain | ||
uses: mymindstorm/setup-emsdk@v11 | ||
- name: Compile via emcc | ||
run: make CC=emcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
name: Test Exchange/SymbolInfo | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
paths: | ||
- 'Exchange/SymbolInfo/**' | ||
- '.github/workflows/test-exchange/symbolinfo.yml' | ||
push: | ||
paths: | ||
- 'Exchange/SymbolInfo/**' | ||
- '.github/workflows/test-exchange/symbolinfo.yml' | ||
|
||
jobs: | ||
|
||
compile: | ||
name: Compile | ||
uses: ./.github/workflows/compile-mql.yml | ||
with: | ||
artifact_prefix: mt | ||
path: Exchange/SymbolInfo/tests | ||
skip_cleanup: true | ||
|
||
Tests-MQL4: | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: Exchange/SymbolInfo/tests | ||
if: false | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test: | ||
- SymbolInfo.test | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: files-ex4 | ||
- name: Run ${{ matrix.test }} | ||
uses: fx31337/mql-tester-action@master | ||
with: | ||
Script: ${{ matrix.test }} | ||
timeout-minutes: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
name: Test Indicators (Bitwise) | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
paths: | ||
- 'Indicator/**' | ||
- 'Indicators/Bitwise/**' | ||
- '.github/workflows/test-indicators-bitwise.yml' | ||
push: | ||
paths: | ||
- 'Indicator**' | ||
- 'Indicators/Bitwise/**' | ||
- '.github/workflows/test-indicators-bitwise.yml' | ||
|
||
jobs: | ||
|
||
compile: | ||
name: Compile | ||
uses: ./.github/workflows/compile-mql.yml | ||
with: | ||
artifact_prefix: mt | ||
path: Indicators/Bitwise/tests | ||
skip_cleanup: true | ||
|
||
Tests-MQL4: | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: Indicators/Bitwise/tests | ||
if: false | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test: | ||
- Indi_Candle.test | ||
- Indi_Pattern.test | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: files-ex4 | ||
- name: Run ${{ matrix.test }} | ||
uses: fx31337/mql-tester-action@master | ||
with: | ||
BtDays: 4-8 | ||
BtMonths: 1 | ||
BtYears: 2021 | ||
GitHubApiToken: ${{ github.token }} | ||
RunOnError: show_logs 200 | ||
TestExpert: ${{ matrix.test }} | ||
timeout-minutes: 10 |
Oops, something went wrong.