2017-09-08 14:39:17 +00:00
|
|
|
os:
|
2017-09-12 17:20:49 +00:00
|
|
|
- linux
|
2020-12-14 18:10:24 +00:00
|
|
|
dist: bionic
|
2017-09-08 14:39:17 +00:00
|
|
|
language: python
|
|
|
|
python:
|
2020-12-14 18:10:24 +00:00
|
|
|
- 3.8
|
2018-08-13 18:04:25 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- IMAGE_NAME=freqtradeorg/freqtrade
|
2017-09-08 14:39:17 +00:00
|
|
|
install:
|
2020-03-06 14:47:16 +00:00
|
|
|
- cd build_helpers && ./install_ta-lib.sh ${HOME}/dependencies; cd ..
|
2019-07-04 18:27:42 +00:00
|
|
|
- export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH
|
|
|
|
- export TA_LIBRARY_PATH=${HOME}/dependencies/lib
|
2020-03-06 14:47:16 +00:00
|
|
|
- export TA_INCLUDE_PATH=${HOME}/dependencies/include
|
2018-12-02 13:08:00 +00:00
|
|
|
- pip install -r requirements-dev.txt
|
2017-12-17 13:01:11 +00:00
|
|
|
- pip install -e .
|
2017-12-17 09:55:34 +00:00
|
|
|
jobs:
|
2019-03-07 20:59:39 +00:00
|
|
|
|
2017-12-17 09:55:34 +00:00
|
|
|
include:
|
2018-08-13 18:04:25 +00:00
|
|
|
- stage: tests
|
|
|
|
script:
|
2019-09-08 08:17:44 +00:00
|
|
|
- pytest --random-order --cov=freqtrade --cov-config=.coveragerc
|
2019-03-08 20:54:40 +00:00
|
|
|
# Allow failure for coveralls
|
2019-11-16 09:49:32 +00:00
|
|
|
# - coveralls || true
|
2018-08-13 18:04:25 +00:00
|
|
|
name: pytest
|
2017-12-17 13:19:35 +00:00
|
|
|
- script:
|
2018-06-17 09:34:12 +00:00
|
|
|
- cp config.json.example config.json
|
2019-11-17 09:31:21 +00:00
|
|
|
- freqtrade create-userdir --userdir user_data
|
2019-11-17 08:57:06 +00:00
|
|
|
- freqtrade backtesting --datadir tests/testdata --strategy SampleStrategy
|
2018-08-13 18:04:25 +00:00
|
|
|
name: backtest
|
2017-12-17 13:13:39 +00:00
|
|
|
- script:
|
2018-06-17 09:34:12 +00:00
|
|
|
- cp config.json.example config.json
|
2019-11-17 08:57:06 +00:00
|
|
|
- freqtrade create-userdir --userdir user_data
|
2020-10-05 17:27:28 +00:00
|
|
|
- freqtrade hyperopt --datadir tests/testdata -e 5 --strategy SampleStrategy --hyperopt SampleHyperOpt --hyperopt-loss SharpeHyperOptLossDaily
|
2018-08-13 18:04:25 +00:00
|
|
|
name: hyperopt
|
2019-09-08 08:17:44 +00:00
|
|
|
- script: flake8
|
2019-08-22 04:56:41 +00:00
|
|
|
name: flake8
|
2019-08-22 04:53:51 +00:00
|
|
|
- script:
|
|
|
|
# Test Documentation boxes -
|
|
|
|
# !!! <TYPE>: is not allowed!
|
2019-10-30 12:27:36 +00:00
|
|
|
# !!! <TYPE> "title" - Title needs to be quoted!
|
|
|
|
- grep -Er '^!{3}\s\S+:|^!{3}\s\S+\s[^"]' docs/*; test $? -ne 0
|
2019-08-22 04:56:41 +00:00
|
|
|
name: doc syntax
|
2019-03-23 18:28:06 +00:00
|
|
|
- script: mypy freqtrade scripts
|
2018-08-13 18:04:25 +00:00
|
|
|
name: mypy
|
|
|
|
|
2019-11-12 08:39:30 +00:00
|
|
|
# - stage: docker
|
|
|
|
# if: branch in (master, develop, feat/improve_travis) AND (type in (push, cron))
|
|
|
|
# script:
|
|
|
|
# - build_helpers/publish_docker.sh
|
|
|
|
# name: "Build and test and push docker image"
|
2018-08-13 18:04:25 +00:00
|
|
|
|
2017-09-12 17:20:49 +00:00
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
secure: bKLXmOrx8e2aPZl7W8DA5BdPAXWGpI5UzST33oc1G/thegXcDVmHBTJrBs4sZak6bgAclQQrdZIsRd2eFYzHLalJEaw6pk7hoAw8SvLnZO0ZurWboz7qg2+aZZXfK4eKl/VUe4sM9M4e/qxjkK+yWG7Marg69c4v1ypF7ezUi1fPYILYw8u0paaiX0N5UX8XNlXy+PBlga2MxDjUY70MuajSZhPsY2pDUvYnMY1D/7XN3cFW0g+3O8zXjF0IF4q1Z/1ASQe+eYjKwPQacE+O8KDD+ZJYoTOFBAPllrtpO1jnOPFjNGf3JIbVMZw4bFjIL0mSQaiSUaUErbU3sFZ5Or79rF93XZ81V7uEZ55vD8KMfR2CB1cQJcZcj0v50BxLo0InkFqa0Y8Nra3sbpV4fV5Oe8pDmomPJrNFJnX6ULQhQ1gTCe0M5beKgVms5SITEpt4/Y0CmLUr6iHDT0CUiyMIRWAXdIgbGh1jfaWOMksybeRevlgDsIsNBjXmYI1Sw2ZZR2Eo2u4R6zyfyjOMLwYJ3vgq9IrACv2w5nmf0+oguMWHf6iWi2hiOqhlAN1W74+3HsYQcqnuM3LGOmuCnPprV1oGBqkPXjIFGpy21gNx4vHfO1noLUyJnMnlu2L7SSuN1CdLsnjJ1hVjpJjPfqB4nn8g12x87TqM1bOm+3Q=
|
2017-12-17 20:19:50 +00:00
|
|
|
cache:
|
2019-01-08 20:27:50 +00:00
|
|
|
pip: True
|
2017-12-17 20:19:50 +00:00
|
|
|
directories:
|
2019-07-04 18:27:42 +00:00
|
|
|
- $HOME/dependencies
|