From 9c964418ca9ce94b9bc35e009ae89c2fe154ea12 Mon Sep 17 00:00:00 2001 From: Simon Hartcher Date: Thu, 9 Apr 2015 11:24:41 +1000 Subject: [PATCH] Add continuous integration using AppVeyor The AppVeyor build installs Scoop, then Invoke-Build which runs some tests. --- .build.ps1 | 43 +++++++++++++++++++++++++++++++++++++++++++ appveyor.yml | 24 ++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 .build.ps1 create mode 100644 appveyor.yml diff --git a/.build.ps1 b/.build.ps1 new file mode 100644 index 00000000..43181298 --- /dev/null +++ b/.build.ps1 @@ -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 +} \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..9cc11fa9 --- /dev/null +++ b/appveyor.yml @@ -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 \ No newline at end of file