Skip to content

Commit

Permalink
Merge branch 'release/4.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
straumat committed Apr 18, 2021
2 parents db08f2b + e186ea6 commit 8b251c8
Show file tree
Hide file tree
Showing 116 changed files with 3,329 additions and 1,791 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: JDK 11 Setup
uses: actions/setup-java@v1
with:
java-version: 11.0.x
java-version: '11'

- name: Build, run tests, package and deploy to Maven central
run: |
Expand Down
22 changes: 3 additions & 19 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: jdk
uses: actions/setup-java@v1
with:
java-version: 11.0.x
java-version: '11'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand All @@ -43,19 +43,7 @@ jobs:
echo "::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
# ================================================================================================================
- 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
- name: Build, run tests, package and deploy to Maven central
id: package
env: # Environment variables.
# GPG.
Expand All @@ -64,11 +52,7 @@ jobs:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
mvn deploy -B -Dgpg.passphrase=${GPG_PASSPHRASE} \
-Dqase.enable=true \
-Dqase.project.code=CTB \
-Dqase.run.id=${{ steps.qase.outputs.qase_run_id }} \
-Dqase.api.token=${{ secrets.QASE_TOKEN }}
mvn deploy -B -Dgpg.passphrase=${GPG_PASSPHRASE}
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic strategy
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: JDK 11 Setup
uses: actions/setup-java@v1
with:
java-version: 11.0.x
java-version: '11'

# ================================================================================================================
- name: Creates a Qase run
Expand All @@ -34,7 +34,7 @@ jobs:
| jq -r -c ".result.id")"
# ================================================================================================================
- name: Build, run tests, package and deploy to Maven central
- name: Build, run tests, package and deploy to Maven central - Also sends Qase tests reports
env: # Environment variables.
# Kucoin credentials.
KUCOIN_NAME: ${{ secrets.KUCOIN_NAME }}
Expand All @@ -54,6 +54,12 @@ jobs:
COINBASE_PRO_PASSPHRASE: ${{ secrets.COINBASE_PRO_PASSPHRASE }}
COINBASE_PRO_KEY: ${{ secrets.COINBASE_PRO_KEY }}
COINBASE_PRO_SECRET: ${{ secrets.COINBASE_PRO_SECRET }}
# Binance credentials.
BINANCE_NAME: ${{ secrets.BINANCE_NAME }}
BINANCE_USERNAME: ${{ secrets.BINANCE_USERNAME }}
BINANCE_PASSPHRASE: ${{ secrets.BINANCE_PASSPHRASE }}
BINANCE_KEY: ${{ secrets.BINANCE_KEY }}
BINANCE_SECRET: ${{ secrets.BINANCE_SECRET }}
run: |
mvn -Pintegration package \
-Dqase.enable=true \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
id: jdk
uses: actions/setup-java@v1
with:
java-version: 11.0.x
java-version: '11'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand All @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v1

# ================================================================================================================
- name: Build, run tests, package and deploy to Maven central - Also sends Qase tests reports
- name: Build, run tests, package and deploy to Maven central
id: package
run: |
mvn package
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: JDK 11 Setup
uses: actions/setup-java@v1
with:
java-version: 11.0.x
java-version: '11'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand All @@ -55,6 +55,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitMode: true
fromTag: ${{ steps.package.outputs.version }}
toTag: ${{ steps.package.outputs.version }}

# ================================================================================================================
- name: Create the release
Expand Down Expand Up @@ -136,6 +138,12 @@ jobs:
with:
args: "Cassandre trading bot ${{ steps.package.outputs.version }} released - More information here : ${{ steps.create_release.outputs.html_url }}"

# ================================================================================================================
- uses: pozetroninc/github-action-get-latest-release@master
id: getLatestRelease
with:
repository: ${{ github.repository }}

# ================================================================================================================
- name: Change release in website sources
id: sed
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
</a>
</p>

<h3 align="center">
<h4 align="center">
<a href="https://trading-bot.cassandre.tech/">Web site</a> |
<a href="https://trading-bot.cassandre.tech/learn/quickstart">Quick Start</a> |
<a href="https://twitter.com/cassandretech">Twitter</a> |
<a href="mailto:[email protected]">Contact us</a>
</h3>
</h4>
<br>
<p align="center">
<a href="https://github.com/cassandre-tech/cassandre-trading-bot/actions">
Expand Down
14 changes: 4 additions & 10 deletions docs/src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ module.exports = {
items: [
{text: 'Overview', link: '/why-cassandre/overview'},
{text: 'Architecture', link: '/why-cassandre/architecture'},
{text: 'Features & roadmap', link: '/why-cassandre/features-and-roadmap'}
{text: 'Features & roadmap', link: '/why-cassandre/features-and-roadmap'},
{text: 'Supported exchanges', link: '/why-cassandre/supported-cryptocurrency-exchanges'}
]
},
{
Expand All @@ -91,15 +92,8 @@ module.exports = {
]
},
{
text: 'Technical analysis', items: [
{text: 'Overview', link: '/learn/technical-analysis/overview'},
{text: 'Create the project', link: '/learn/technical-analysis/create-the-project'},
{text: 'Create your strategy', link: '/learn/technical-analysis/create-your-strategy'},
{text: 'React to signals', link: '/learn/technical-analysis/react-to-signals'},
{
text: 'Backtest your strategy',
link: '/learn/technical-analysis/backtest-your-trading-strategy'
},
text: 'Advanced', items: [
{text: 'Technical analysis', link: '/learn/technical-analysis'},
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion docs/src/learn/dry-mode-and-backtesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ Place this file in the `src/test/resources` folder of your project and add this

Now, during the tests, instead of receiving tickers from the exchange, you will receive tickers imported from the `tsv/csv` files you put in `src/test/resources`.

You can see an example of dry mode and backtesting in the [Technical analysis chapter](./technical-analysis/overview.md).
You can see an example of dry mode and backtesting in the [Technical analysis chapter](src/learn/technical-analysis-backup/overview.md).

Loading

0 comments on commit 8b251c8

Please sign in to comment.