Compare commits

...

14 Commits

Author SHA1 Message Date
e1677dee66 Finally fix the CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-22 19:44:21 +02:00
b15b7eb27a Drbug
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-22 19:39:14 +02:00
4743badc4b Fix usage of woodpecker-xmpp
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-22 19:37:30 +02:00
1dd99802d5 Improve CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-22 19:35:44 +02:00
0c8b572e82 verbose
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-20 21:36:13 +02:00
45cf73dbf5 ci: Use the pub cache
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-20 21:08:34 +02:00
a29eddeb66 .
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 23:36:47 +02:00
4dc0d5652e .
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 23:33:02 +02:00
c7968ae045 .
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 23:28:53 +02:00
c188e82888 ci: Test notify
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 23:19:07 +02:00
ceeb1efde7 .
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 19:18:19 +02:00
e833e9d9c8 ci: Update pubspec
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 18:30:34 +02:00
a68a77d172 ci: Add verbose logging
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 18:18:05 +02:00
e3cbe3b065 ci: Use a newer Dart version
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-08-18 18:15:56 +02:00
4 changed files with 25 additions and 37 deletions

View File

@ -1,11 +1,24 @@
pipeline:
lint:
image: dart:2.18.1
image: dart:3.0.7
commands:
- dart pub get
# Proxy requests to pub.dev using pubcached
- PUB_HOSTED_URL=http://172.17.0.1:8000 dart pub get --no-precompile
- dart analyze --fatal-infos --fatal-warnings
test:
image: dart:2.18.1
image: dart:3.0.7
commands:
- dart pub get
- dart test
notify:
image: git.polynom.me/papatutuwawa/woodpecker-xmpp
settings:
xmpp_tls: 1
xmpp_is_muc: 1
xmpp_recipient: moxxy-build@muc.moxxy.org
xmpp_alias: 2Bot
secrets: [ xmpp_jid, xmpp_password, xmpp_server ]
when:
status:
- success
- failure

View File

@ -17,16 +17,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1657540956,
"narHash": "sha256-ihGbOFWtAkENwxBE5kV/yWt2MncvW+BObLDsmxCLo/Q=",
"owner": "NANASHI0X74",
"lastModified": 1692311226,
"narHash": "sha256-mRzNup0PIUD6YxbrYvjzL7f+1oaOGy9nmGCV3AZkQus=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "043de04db8a6b0391b3fefaaade160514d866946",
"rev": "ef8288935ba859fc3b30632fa6e04705f81b9c2a",
"type": "github"
},
"original": {
"owner": "NANASHI0X74",
"ref": "flutter-3-0-0",
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}

View File

@ -1,46 +1,21 @@
{
description = "moxlib";
inputs = {
nixpkgs.url = "github:NANASHI0X74/nixpkgs/flutter-3-0-0";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
config = {
android_sdk.accept_license = true;
allowUnfree = true;
};
};
android = pkgs.androidenv.composeAndroidPackages {
# TODO: Find a way to pin these
#toolsVersion = "26.1.1";
#platformToolsVersion = "31.0.3";
#buildToolsVersions = [ "31.0.0" ];
#includeEmulator = true;
#emulatorVersion = "30.6.3";
platformVersions = [ "28" ];
includeSources = false;
includeSystemImages = true;
systemImageTypes = [ "default" ];
abiVersions = [ "x86_64" ];
includeNDK = false;
useGoogleAPIs = false;
useGoogleTVAddOns = false;
};
pinnedJDK = pkgs.jdk;
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
flutter pinnedJDK android.platform-tools dart # Flutter
dart # Dart
gitlint jq # Code hygiene
ripgrep # General utilities
];
ANDROID_HOME = "${android.androidsdk}/libexec/android-sdk";
JAVA_HOME = pinnedJDK;
ANDROID_AVD_HOME = (toString ./.) + "/.android/avd";
};
});
}

View File

@ -16,4 +16,4 @@ dependencies:
dev_dependencies:
flutter_lints: ^2.0.0
test: ^1.20.1
very_good_analysis: ^3.0.1
very_good_analysis: ^5.0.0