Files
ShadowsocksX-NG/ShadowsocksX-NG2/Taskfile.dist.yml
T
Qiu Yuzhou 851660f1c6 test: split real-process smoke into opt-in target
Real sslocal smoke (11 tests, ~27s) sat on every task test as the
slow tail. Tests/Smoke now builds as a separate target behind the
ShadowsocksX-NG2Smoke scheme; task test:smoke runs it on demand and
the README release gate requires it green next to packaging-gate.

SignalRecorder also gains kill(_, 0) semantics (stale pids report
ESRCH): the GUI-restart test burned the 5s waitForWrapperExit
ceiling on pid 99999, now 0.18s. Default lane: 617 tests ~40s.
2026-09-27 01:11:48 +08:00

66 lines
1.6 KiB
YAML

# https://taskfile.dev/
version: '3'
vars:
PROJECT_NAME: "ShadowsocksX-NG2"
BUILD_DIR: "{{ .TASKFILE_DIR }}/.build"
DERIVED_DATA_DIR: "{{ .BUILD_DIR }}/derivedData"
tasks:
gen:prj:
desc: 'Generate xcode project by xcodegen'
cmds:
- xcodegen generate
build:
desc: Build the ShadowsocksX-NG2 macOS application
cmds:
- >-
xcodebuild
-project ShadowsocksX-NG2.xcodeproj
-scheme ShadowsocksX-NG2
-configuration Debug
-destination 'platform=macOS,arch=arm64'
-derivedDataPath {{ .DERIVED_DATA_DIR }}
build
format:
desc: 'Format the code by swift-format'
cmds:
- swift format format --in-place -r App Tests Domain Agent
lint:
desc: 'Lint the swift code by swiftlint'
cmds:
- swiftlint lint --config .swiftlint.yml --no-cache
lint:fix:
desc: 'Automatically fix SwiftLint violations'
cmds:
- swiftlint lint --fix --config .swiftlint.yml --no-cache
test:
desc: 'Run unit tests'
cmds:
- >-
xcodebuild
-project ShadowsocksX-NG2.xcodeproj
-scheme ShadowsocksX-NG2
-destination 'platform=macOS,arch=arm64'
-derivedDataPath {{ .DERIVED_DATA_DIR }}
test
test:smoke:
desc: 'Run real-process smoke tests (real sslocal; release gate)'
cmds:
- >-
xcodebuild
-project ShadowsocksX-NG2.xcodeproj
-scheme ShadowsocksX-NG2Smoke
-destination 'platform=macOS,arch=arm64'
-derivedDataPath {{ .DERIVED_DATA_DIR }}
test
clean:
cmds:
- rm -rf {{ .BUILD_DIR }}