Skip to content

Commit

Permalink
ci: update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
Burak Tasci committed Sep 4, 2017
1 parent e43896f commit 3bd6b98
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 14 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@ addons:
language: node_js
node_js:
- "6"
- "7"
- "8"
cache:
directories: node_modules
branches:
only: master
only: v0.2.x

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm i -g npm@^3
- yarn
- cd packages/@ngx-meta/core
- yarn
- cd ../../..
- sleep 3
after_failure:
- cat /home/travis/build/fulls1z3/ngx-meta/npm-debug.log
Expand All @@ -30,4 +35,4 @@ notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Dynamic page title & meta tags generator for **Angular**
[![Linux build](https://travis-ci.org/fulls1z3/ngx-meta.svg?branch=v0.2.x)](https://travis-ci.org/fulls1z3/ngx-meta)
[![Windows build](https://ci.appveyor.com/api/projects/status/github/fulls1z3/ngx-meta?branch=v0.2.x&svg=true)](https://ci.appveyor.com/project/fulls1z3/ngx-meta)
[![coverage](https://codecov.io/github/fulls1z3/ngx-meta/coverage.svg?branch=v0.2.x)](https://codecov.io/gh/fulls1z3/ngx-meta)
[![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)

> Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.
Expand All @@ -26,14 +27,15 @@ Name | Description | NPM
[@ngx-meta/core](https://github.com/fulls1z3/ngx-meta/tree/v0.2.x/packages/@ngx-meta/core) | Dynamic page title & meta tags generator for **Angular** | [![npm version](https://badge.fury.io/js/%40ngx-meta%2Fcore.svg)](https://www.npmjs.com/package/@ngx-meta/core)

### Examples
- [ng-seed/universal] and [ng-seed/spa] are officially maintained seed projects, showcasing common patterns and best practices for **`ngx-meta`**.
- [ng-seed/universal] and [fulls1z3/example-app] are officially maintained projects, showcasing common patterns and best
practices for **`ngx-meta`**.

## Contributing
If you want to file a bug, contribute some code, or improve documentation, please read up on the following contribution guidelines:
- [Issue guidelines](CONTRIBUTING.md#submit)
- [Contributing guidelines](CONTRIBUTING.md)
- [Coding rules](CONTRIBUTING.md#rules)
- [ChangeLog](CHANGELOG.md)
- [Change log](CHANGELOG.md)

## License
The MIT License (MIT)
Expand All @@ -44,5 +46,5 @@ Copyright (c) 2017 [Burak Tasci]
[master]: https://github.com/ngx-meta/core/tree/master
[v0.2.x]: https://github.com/ngx-meta/core/tree/v0.2.x
[ng-seed/universal]: https://github.com/ng-seed/universal
[ng-seed/spa]: https://github.com/ng-seed/spa
[fulls1z3/example-app]: https://github.com/fulls1z3/example-app
[Burak Tasci]: https://github.com/fulls1z3
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
environment:
matrix:
- nodejs_version: "6"
- nodejs_version: "7"
- nodejs_version: "8"
cache:
# local npm modules
- node_modules -> package.json
Expand All @@ -18,12 +20,12 @@ install:
- npm install -g npm
# install modules
- npm install
- cd packages/@ngx-meta/core
- npm install
- cd ../../..
# Post-install test scripts
test_script:
# Output useful info for debugging.
- node --version && npm --version
# We test multiple Windows shells because of prior stdout buffering issues
# filed against Grunt. https://github.com/joyent/node/issues/3584
- ps: "npm test # PowerShell" # Pass comment to PS for easier debugging
# run tests
- cmd: npm test
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
ngx-meta/core:
target: 80%
paths: packages/@ngx-meta/core
11 changes: 6 additions & 5 deletions packages/@ngx-meta/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Dynamic page title & meta tags generator for **Angular**

[![npm version](https://badge.fury.io/js/%40ngx-meta%2Fcore.svg)](https://www.npmjs.com/package/@ngx-meta/core)
[![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)

> Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.
Expand Down Expand Up @@ -51,8 +52,8 @@ npm install @ngx-meta/core --save
```

### <a name="examples"></a> Examples
- [ng-seed/universal] and [ng-seed/spa] are officially maintained seed projects, showcasing common patterns and best practices
for **`@ngx-meta/core`**.
- [ng-seed/universal] and [fulls1z3/example-app] are officially maintained projects, showcasing common patterns and best
practices for **`@ngx-meta/core`**.

### <a name="recommended-packages"></a> Recommended packages
The following package(s) have no dependency for **`@ngx-meta/core`**, however may provide supplementary/shorthand functionality:
Expand Down Expand Up @@ -201,7 +202,7 @@ export function metaFactory(): MetaLoader {
```

`MetaStaticLoader` has one parameter:
- **settings**: `MetaSettings` : meta settings (*by default, prepend page titles*)
- **providedSettings**: `MetaSettings` : meta settings (*by default, prepend page titles*)

> :+1: Holy cow! **`@ngx-meta/core`** will update the **page title** and **meta tags** every time the route changes.
Expand Down Expand Up @@ -309,7 +310,7 @@ export const routes: Routes = [
];
```

You can find out in-depth examples about the use of **`callback`** function on [ng-seed/universal] and on [ng-seed/spa],
You can find out in-depth examples about the use of **`callback`** function on [ng-seed/universal] and on [fulls1z3/example-app],
which are officially maintained seed projects showcasing common patterns and best practices.

## <a name="set-meta-tags-programmatically"></a> Set meta tags programmatically
Expand Down Expand Up @@ -347,7 +348,7 @@ Copyright (c) 2017 [Burak Tasci]
[master]: https://github.com/ngx-meta/core/tree/master
[v0.2.x]: https://github.com/ngx-meta/core/tree/v0.2.x
[ng-seed/universal]: https://github.com/ng-seed/universal
[ng-seed/spa]: https://github.com/ng-seed/spa
fulls1z3/example-app]: https://github.com/fulls1z3/example-app
[@ngx-config/core]: https://github.com/fulls1z3/ngx-config/tree/master/packages/@ngx-config/core
[forRoot]: https://angular.io/docs/ts/latest/guide/ngmodule.html#!#core-for-root
[AoT compilation]: https://angular.io/docs/ts/latest/cookbook/aot-compiler.html
Expand Down

0 comments on commit 3bd6b98

Please sign in to comment.