Sunday, 2 April 2017

How to add AppVeyor to Angular app

Add a simple “.appveyor.yml” file to the root of your project:

environment:
matrix:
- nodejs_version: "6.9"
matrix:
fast_finish: true
install:
- ps: Install-Product node $env:nodejs_version
- npm install
test_script:
- node --version
- npm test
build: off
view raw .appveyor.yml hosted with ❤ by GitHub

Next sign in to https://ci.appveyor.com and mark your repo as an AppVeyor project.

Once you’ve added your project you can build your project within AppVeyor.  A build will also get kicked off with every new commit/push to your repo:

Add the following code to you readme.md file in GitHub to get a CI build badge.

[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/stevenh77/angular-lob-app?branch=master&svg=true)](https://ci.appveyor.com/project/stevenh77/angular-lob-app/branch/master)
view raw readme-md hosted with ❤ by GitHub

No comments:

Post a Comment