Skip to content

Commit

Permalink
Merge branch 'release/5.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
straumat committed Jun 29, 2021
2 parents b020e25 + b55f936 commit d563e41
Show file tree
Hide file tree
Showing 267 changed files with 5,246 additions and 13,526 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ updates:
schedule:
interval: "weekly"
day: "friday"
time: "20:00"
time: "18:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
target-branch: development
66 changes: 66 additions & 0 deletions .github/workflows/branch-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Branch push

on:
push:
branches-ignore:
- development
- master

jobs:
build:
# ==================================================================================================================
# Configuration.
runs-on: ubuntu-latest

steps:
# ================================================================================================================
- name: JDK 11 Setup
id: jdk
uses: actions/setup-java@v1
with:
java-version: '11'

# ================================================================================================================
- name: Retrieve the sources
id: sources
uses: actions/checkout@v1

# ================================================================================================================
- name: Build, run tests, package and deploy to Maven central
id: package
run: |
mvn install -Dgpg.skip
# ================================================================================================================
- name: Retrieve the version
id: version
run: |
echo "::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic strategy
id: cassandre-trading-bot-spring-boot-starter-basic-archetype
run: |
mvn -B archetype:generate \
-DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-archetype \
-DarchetypeVersion=${{ steps.version.outputs.version }} \
-DgroupId=com.example \
-DartifactId=archetype-test-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-basic/pom.xml compile
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic ta4j strategy
id: cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype
run: |
mvn -B archetype:generate \
-DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype \
-DarchetypeVersion=${{ steps.version.outputs.version }} \
-DgroupId=com.example \
-DartifactId=archetype-test-ta4j-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-ta4j-basic/pom.xml compile
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CodeQL"

on:
schedule:
- cron: '0 18 * * FRI'
- cron: '0 17 * * FRI'

jobs:
analyze:
Expand Down
20 changes: 2 additions & 18 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Integration tests

on:
schedule:
- cron: '0 18 * * FRI'
- cron: '0 17 * * FRI'

jobs:
build:
Expand All @@ -21,18 +21,6 @@ jobs:
with:
java-version: '11'

# ================================================================================================================
- name: Creates a Qase run
id: qase
run: |
echo "::set-output name=qase_run_id::$( \
curl -s "https://api.qase.io/v1/run/CTB" \
-X POST \
-H "Token: ${{ secrets.QASE_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{"title": "${{ github.event.head_commit.message }}","description": "Test run for ${{ steps.version.outputs.version }}","environment_id": null,"cases": []}' \
| jq -r -c ".result.id")"
# ================================================================================================================
- name: Build, run tests, package and deploy to Maven central - Also sends Qase tests reports
env: # Environment variables.
Expand Down Expand Up @@ -61,11 +49,7 @@ jobs:
BINANCE_KEY: ${{ secrets.BINANCE_KEY }}
BINANCE_SECRET: ${{ secrets.BINANCE_SECRET }}
run: |
mvn -Pintegration package \
-Dqase.enable=true \
-Dqase.project.code=CTB \
-Dqase.run.id=${{ steps.qase.outputs.qase_run_id }} \
-Dqase.api.token=${{ secrets.QASE_TOKEN }}
mvn -Pintegration package
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic strategy
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ Supprimerait loose-touch.iml
output-*
/.idea/

# Yarn - We retrieve the latest release of all libs during CI
docs/yarn.lock

# others
/_data/
/_site/
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

| Version | Supported |
| ------- | ------------------ |
| 5.x.x | :white_check_mark: |
| 4.x.x | :white_check_mark: |
| 3.x.x | :x: |
| 2.x.x | :x: |
Expand Down
2 changes: 1 addition & 1 deletion docs/src/why-cassandre/features-and-roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
* Buy / Sell market & limit orders.
* [Automatic position management](../learn/position-management.md) (with stop gain & stop loss rules).
* [Dry mode & backtesting](../learn/dry-mode-and-backtesting.md).
* Extensively [tested](https://app.qase.io/public/report/5cf352e57e1683384446a8b54bd725acc13b87aa) and [documented](../learn/quickstart.md).
* Extensively tested and [documented](../learn/quickstart.md).

Our Roadmap is available on [Github](https://github.com/cassandre-tech/cassandre-trading-bot/milestones?direction=asc&sort=due_date&state=open).
Loading

0 comments on commit d563e41

Please sign in to comment.