From 5f1b9943d1667b3e6148f21a4a6f500a9c834346 Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Sun, 17 Dec 2017 11:55:34 +0200 Subject: [PATCH 1/6] add smoke tests to run a round of hyperopt and backtesting --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 37bd480a0..c6438b544 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,14 @@ install: - export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH - pip install flake8 coveralls - pip install -r requirements.txt -script: -- pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ +jobs: + include: + - stage: test + - pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ + - stage: hyperopt + - python freqtrade/main.py hyperopt -e 5 + - stage: backtesting + - python freqtrade/main.py backtesting after_success: - flake8 freqtrade && coveralls notifications: From a68ca31684cfe9c73d95a231239603fdc4f43914 Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Sun, 17 Dec 2017 12:01:08 +0200 Subject: [PATCH 2/6] add smoke test commands under script block --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c6438b544..24c5b2a4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,14 @@ install: jobs: include: - stage: test - - pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ + script: + - pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ - stage: hyperopt - - python freqtrade/main.py hyperopt -e 5 + script: + - python freqtrade/main.py hyperopt -e 5 - stage: backtesting - - python freqtrade/main.py backtesting + script: + - python freqtrade/main.py backtesting after_success: - flake8 freqtrade && coveralls notifications: From 21a11f55891c177d2dcb357bc5f61a6dd73a0929 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 17 Dec 2017 14:45:31 +0200 Subject: [PATCH 3/6] run pytest, hyperopt and backtesting in parallel --- .travis.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 24c5b2a4c..1d9d14a80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,15 +19,9 @@ install: - pip install -r requirements.txt jobs: include: - - stage: test - script: - - pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ - - stage: hyperopt - script: - - python freqtrade/main.py hyperopt -e 5 - - stage: backtesting - script: - - python freqtrade/main.py backtesting + - script: pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ + - script: python freqtrade/main.py hyperopt -e 5 + - script: python freqtrade/main.py backtesting after_success: - flake8 freqtrade && coveralls notifications: From e83e4909a04a39f988c72bfa4d0c565b12b78cba Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 17 Dec 2017 15:01:11 +0200 Subject: [PATCH 4/6] install freqtrade module for hyperopting --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1d9d14a80..3f52c0985 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ install: - export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH - pip install flake8 coveralls - pip install -r requirements.txt +- pip install -e . jobs: include: - script: pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ From fe0c26f536889f72a4be3798ba428f5a62f3df3b Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 17 Dec 2017 15:13:39 +0200 Subject: [PATCH 5/6] create config.json for hyperopt --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3f52c0985..192cbcf8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,8 +21,10 @@ install: jobs: include: - script: pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ - - script: python freqtrade/main.py hyperopt -e 5 - script: python freqtrade/main.py backtesting + - script: + - cp config.json.example config.json + - python freqtrade/main.py hyperopt -e 5 after_success: - flake8 freqtrade && coveralls notifications: From d3947fc89317de0746f07284177b9db893cedc5f Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 17 Dec 2017 15:19:35 +0200 Subject: [PATCH 6/6] create config.json for backtesting --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 192cbcf8e..65e48c0db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,9 @@ install: jobs: include: - script: pytest --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/ - - script: python freqtrade/main.py backtesting + - script: + - cp config.json.example config.json + - python freqtrade/main.py backtesting - script: - cp config.json.example config.json - python freqtrade/main.py hyperopt -e 5