mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-08-28 09:06:46 +00:00
+43
@@ -0,0 +1,43 @@
|
||||
. "lib/core.ps1"
|
||||
|
||||
function Run-Test($test) {
|
||||
exec { powershell "./test/$test" }
|
||||
}
|
||||
|
||||
task . {
|
||||
abort 'There is no default build task'
|
||||
}
|
||||
|
||||
task Test {
|
||||
"Running tests..."
|
||||
},
|
||||
MoveDir,
|
||||
HashTable,
|
||||
Packages,
|
||||
Opts,
|
||||
Versions,
|
||||
Vimrc
|
||||
|
||||
task MoveDir {
|
||||
run-test movedir
|
||||
}
|
||||
|
||||
task HashTable {
|
||||
run-test ht
|
||||
}
|
||||
|
||||
task Packages {
|
||||
run-test packages
|
||||
}
|
||||
|
||||
task Opts {
|
||||
run-test opts
|
||||
}
|
||||
|
||||
task Versions {
|
||||
run-test versions
|
||||
}
|
||||
|
||||
task Vimrc {
|
||||
run-test vimrc
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
version: "{build}-{branch}"
|
||||
|
||||
branches:
|
||||
except:
|
||||
- gh-pages
|
||||
|
||||
environment:
|
||||
scoop: c:\tools\scoop
|
||||
|
||||
init:
|
||||
- ps: (Get-PSProvider FileSystem).Home = 'c:\tools\'
|
||||
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
|
||||
- ps: scoop install invoke-build
|
||||
|
||||
build: off
|
||||
|
||||
test_script:
|
||||
- ps: invoke-build test
|
||||
|
||||
notifications:
|
||||
- provider: Slack
|
||||
auth_token:
|
||||
secure: lzkktSx/4RFbuzbztN3ZycdGJjr6ZqapatvExhwRjB4Va9QNutHw1lGPI0hWlPAq
|
||||
channel: activity
|
||||
Reference in New Issue
Block a user