Compare commits
122
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f765224a86 | ||
|
|
14d2219eb8 | ||
|
|
137580ccf9 | ||
|
|
f101d22f54 | ||
|
|
68aedb7641 | ||
|
|
754d526b49 | ||
|
|
c458871569 | ||
|
|
056825aa0c | ||
|
|
16b19fc5ce | ||
|
|
4ad4a23ed8 | ||
|
|
d8c215eacc | ||
|
|
2b446ab22b | ||
|
|
a029d8a7dc | ||
|
|
4482234e1a | ||
|
|
b5de30f561 | ||
|
|
70ad5f322c | ||
|
|
d167092c83 | ||
|
|
c4f4bafe85 | ||
|
|
ed06b22a77 | ||
|
|
172362b533 | ||
|
|
ad72cb6f56 | ||
|
|
9057ee0052 | ||
|
|
50d0b44315 | ||
|
|
21b08ed384 | ||
|
|
993c4d2ee9 | ||
|
|
57a9d51027 | ||
|
|
673f0edb8b | ||
|
|
7f96798f13 | ||
|
|
6e5704a45b | ||
|
|
495591159f | ||
|
|
718fe7c5ee | ||
|
|
ecd23213f9 | ||
|
|
e6baed8cb4 | ||
|
|
c87abec0b9 | ||
|
|
0aba41d8bf | ||
|
|
2a2d1047b4 | ||
|
|
66ef1ccf32 | ||
|
|
677ede5bc7 | ||
|
|
996a7ed22c | ||
|
|
85208c4e5a | ||
|
|
5cfec50cba | ||
|
|
76ad71e1dc | ||
|
|
0277fb507c | ||
|
|
8d7d3174aa | ||
|
|
00eb3333fe | ||
|
|
629ca01d99 | ||
|
|
c2d8681ce8 | ||
|
|
08f79cb148 | ||
|
|
e21906e70d | ||
|
|
9d2cc32bc9 | ||
|
|
d9d057c8dc | ||
|
|
1f3fa0c4a6 | ||
|
|
dea3def385 | ||
|
|
f72ef2f5d4 | ||
|
|
f28cb759df | ||
|
|
b9d69c3e64 | ||
|
|
c2a1c9eaac | ||
|
|
bf37209a15 | ||
|
|
2c558fe6fd | ||
|
|
ad88011454 | ||
|
|
559c17bc1d | ||
|
|
ab9c46f0eb | ||
|
|
aa799d2ca8 | ||
|
|
177c978474 | ||
|
|
39b9991413 | ||
|
|
b303f110f1 | ||
|
|
f851941a6a | ||
|
|
a313552976 | ||
|
|
6ac97ed3fe | ||
|
|
d583b937b7 | ||
|
|
15b9a2d935 | ||
|
|
5a8ce15961 | ||
|
|
e1c64cef46 | ||
|
|
ee064f3cb4 | ||
|
|
3e46e2ff29 | ||
|
|
f28e702549 | ||
|
|
fc31a4399c | ||
|
|
9b23053b66 | ||
|
|
389a04d250 | ||
|
|
40e1d1478b | ||
|
|
2154ff3c33 | ||
|
|
2245565f95 | ||
|
|
014858f06b | ||
|
|
3f1f86a78e | ||
|
|
a549169a7c | ||
|
|
be7cae365a | ||
|
|
cef3b2e593 | ||
|
|
ae927ebc57 | ||
|
|
90532cf501 | ||
|
|
ab0678d61e | ||
|
|
a1b7d22d26 | ||
|
|
29eae4b1f6 | ||
|
|
f5bbc63481 | ||
|
|
ddc72d85b0 | ||
|
|
68bbf5b2d3 | ||
|
|
95e76a55da | ||
|
|
2b6659f4ec | ||
|
|
e0c118a73e | ||
|
|
4e61b2aed6 | ||
|
|
ba2758c0a3 | ||
|
|
c718b966a1 | ||
|
|
99438e142f | ||
|
|
4d8076c3cf | ||
|
|
db75c5b74a | ||
|
|
966a082147 | ||
|
|
cd20a5ec29 | ||
|
|
cc4c1c9201 | ||
|
|
ff021d572c | ||
|
|
89992967be | ||
|
|
3c68bde62b | ||
|
|
c38251f5b3 | ||
|
|
a01f6d2322 | ||
|
|
417a33eb25 | ||
|
|
2e7f7f23b3 | ||
|
|
e5e182761e | ||
|
|
a094d88799 | ||
|
|
e51915d1cd | ||
|
|
3a654f6ede | ||
|
|
5227751dca | ||
|
|
27eafe4ff4 | ||
|
|
8c83a9408b | ||
|
|
fe2410f719 |
+71
-38
@@ -3,35 +3,38 @@ type: docker
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: Lint
|
||||
failure: ignore
|
||||
image: mingc/android-build-box:latest
|
||||
commands:
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Install linters..."
|
||||
- curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.0.0/ktlint && chmod a+x ktlint && mv ktlint /usr/local/bin/
|
||||
- curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.1/detekt-cli-1.23.1.zip && unzip detekt-cli-1.23.1.zip
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Linting..."
|
||||
- ktlint 'shared/**/*.kt' 'androidApp/**/*.kt' '!shared/build' || true
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Detecting..."
|
||||
- ./detekt-cli-1.23.1/bin/detekt-cli --all-rules --excludes '**/shared/build/**/*.kt' || true
|
||||
- echo "---------------------------------------------------------"
|
||||
command_timeout: 1m
|
||||
- name: BuildAndTest
|
||||
image: mingc/android-build-box:latest
|
||||
commands:
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Configure gradle..."
|
||||
- mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true\npushCache=false\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
|
||||
- mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=true\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Building..."
|
||||
- ./gradlew build -x test
|
||||
- echo "Configure java..."
|
||||
- . ~/.bash_profile
|
||||
- jenv global 17.0
|
||||
- java --version
|
||||
- date
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Testing..."
|
||||
- echo "Building and testing..."
|
||||
- ./gradlew build
|
||||
- echo "---------------------------------------------------------"
|
||||
- ./gradlew koverMergedXmlReport
|
||||
environment:
|
||||
TZ: Europe/Paris
|
||||
SONAR_HOST_URL:
|
||||
from_secret: sonarScannerHostUrl
|
||||
SONAR_LOGIN:
|
||||
from_secret: sonarScannerLogin
|
||||
- name: Analyse
|
||||
image: kytay/sonar-node-plugin
|
||||
settings:
|
||||
sonar_host:
|
||||
from_secret: sonarScannerHostUrl
|
||||
sonar_token:
|
||||
from_secret: sonarScannerLogin
|
||||
use_node_version: 16.18.1
|
||||
sonar_debug: true
|
||||
sonar_project_settings: ./sonar-project.properties
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
@@ -43,24 +46,36 @@ type: docker
|
||||
name: Publish
|
||||
|
||||
steps:
|
||||
- name: createTag
|
||||
- name: createTagAndChangelog
|
||||
image: ubuntu:latest
|
||||
commands:
|
||||
- apt-get update && apt-get install -y git
|
||||
- git fetch --tags -p
|
||||
- PREV=$(git describe --tags --abbrev=0)
|
||||
- ./build.sh --publish --from-ci
|
||||
- git remote add pushing https://$GITEA_USR:$GITEA_PASS@gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform.git
|
||||
- git push pushing --tags
|
||||
- VER=$(git describe --tags --abbrev=0)
|
||||
- CHANGELOG=$(git log $PREV..HEAD --pretty="- %s")
|
||||
- echo "**$VER**\n\n$CHANGELOG\n\n--------------------------------------------------------------------\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
|
||||
- git add CHANGELOG.md
|
||||
- git commit -m "Changelog for $VER [CI SKIP]"
|
||||
environment:
|
||||
TZ: Europe/Paris
|
||||
GITEA_USR:
|
||||
from_secret: giteaUsr
|
||||
GITEA_PASS:
|
||||
from_secret: giteaPass
|
||||
|
||||
- name: git-push
|
||||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
branch: master
|
||||
remote:
|
||||
from_secret: remoteUrl
|
||||
followtags: true
|
||||
ssh_key:
|
||||
from_secret: privateKey
|
||||
skip_verify: true
|
||||
|
||||
- name: scpFiles
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: amine-louveau.fr
|
||||
host: amine-bouabdallaoui.fr
|
||||
username: ubuntu
|
||||
key:
|
||||
from_secret: privateKey
|
||||
@@ -71,16 +86,13 @@ steps:
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: amine-louveau.fr
|
||||
host: amine-bouabdallaoui.fr
|
||||
user: ubuntu
|
||||
key:
|
||||
from_secret: privateKey
|
||||
command_timeout: 2m
|
||||
script:
|
||||
- cd /home/ubuntu
|
||||
- sudo rm -rf /var/www/amine/version.txt
|
||||
- sudo chown www-data:www-data ./version.txt
|
||||
- sudo mv version.txt /var/www/amine/
|
||||
- cd /home/ubuntu && sudo rm -rf /var/www/amine/version.txt && sudo chown www-data:www-data ./version.txt && sudo mv version.txt /var/www/amine/
|
||||
|
||||
trigger:
|
||||
event:
|
||||
@@ -102,13 +114,13 @@ steps:
|
||||
- git fetch --tags
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Configure gradle..."
|
||||
- mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=false\npushCache=false\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
|
||||
- mkdir -p ~/.gradle && echo "org.gradle.daemon=false\nignoreGitVersion=false\nsystemProp.org.gradle.internal.http.connectionTimeout=180000\nsystemProp.org.gradle.internal.http.socketTimeout=180000" >> ~/.gradle/gradle.properties
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Generate APK"
|
||||
- ./gradlew :androidApp:assembleGithubConfigRelease -P pushCache=false
|
||||
- ./gradlew :androidApp:assembleGithubConfigRelease
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Get Key"
|
||||
- wget https://amine-louveau.fr/key
|
||||
- wget https://amine-bouabdallaoui.fr/key
|
||||
- echo "---------------------------------------------------------"
|
||||
- echo "Zipalign"
|
||||
- $ANDROID_HOME/build-tools/31.0.0/zipalign -f -v 4 androidApp/build/outputs/apk/githubConfig/release/androidApp-githubConfig-release-unsigned.apk androidApp/build/outputs/apk/githubConfig/release/android-prod-released-ziped.apk
|
||||
@@ -130,8 +142,29 @@ steps:
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: giteaAPI
|
||||
base_url: https://gitea.amine-louveau.fr
|
||||
base_url: https://gitea.amine-bouabdallaoui.fr
|
||||
files: signed.apk
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
failure: ignore
|
||||
settings:
|
||||
host:
|
||||
from_secret: smtpHOST
|
||||
port:
|
||||
from_secret: smtpPORT
|
||||
username:
|
||||
from_secret: smtpUSERNAME
|
||||
password:
|
||||
from_secret: smtpPASSWORD
|
||||
from:
|
||||
from_secret: smtpFROM
|
||||
subject: Mapping file
|
||||
recipients:
|
||||
from_secret: smtpTO
|
||||
recipients_only: true
|
||||
skip_verify: true
|
||||
attachment: androidApp/build/outputs/mapping/githubConfigRelease/mapping.txt
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
@@ -10,7 +10,7 @@ Please read the guidelines before contributing, and follow them (or try to) when
|
||||
|
||||
There are many ways to contribute to this project, you could [translate the app](https://crowdin.com/project/readerforselfoss), report bugs, request missing features, suggest enhancements and changes to existing ones. You also can improve the README with useful tips that could help the other users.
|
||||
|
||||
You can fork the repository, and [help me solve some issues](https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/issues?q=is%3Aissue+is%3Aopen+label%3A%22Up+For+Grabs%22) or [develop new things](https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/issues)
|
||||
You can fork the repository, and [help me solve some issues](https://gitea.amine-bouabdallaoui.fr/Louvorg/ReaderForSelfoss-multiplatform/issues?q=is%3Aissue+is%3Aopen+label%3A%22Up+For+Grabs%22) or [develop new things](https://gitea.amine-bouabdallaoui.fr/Louvorg/ReaderForSelfoss-multiplatform/issues)
|
||||
|
||||
### What I can't help you with.
|
||||
|
||||
|
500 Internal Server Error
Gitea Version: 1.28.0+dev-215-g805697089e | ||||