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