Skip to content

Commit e88f962

Browse files
committed
global: prepare release
Signed-off-by: Harris Tzovanakis <[email protected]>
1 parent 823f000 commit e88f962

File tree

7 files changed

+131
-14
lines changed

7 files changed

+131
-14
lines changed

.travis.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# This file is part of Invenio.
4+
# Copyright (C) 2015, 2016 CERN.
5+
#
6+
# Invenio is free software; you can redistribute it
7+
# and/or modify it under the terms of the GNU General Public License as
8+
# published by the Free Software Foundation; either version 2 of the
9+
# License, or (at your option) any later version.
10+
#
11+
# Invenio is distributed in the hope that it will be
12+
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU General Public License
17+
# along with Invenio; if not, write to the
18+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19+
# MA 02111-1307, USA.
20+
#
21+
# In applying this license, CERN does not
22+
# waive the privileges and immunities granted to it by virtue of its status
23+
# as an Intergovernmental Organization or submit itself to any jurisdiction.
24+
25+
notifications:
26+
email: false
27+
28+
sudo: false
29+
30+
language: node_js
31+
32+
node_js:
33+
- '6.11.2'
34+
- '8.4.0'
35+
36+
env:
37+
global:
38+
- GH_REF: 'github.com/inveniosoftware/invenio-stats-js.git'
39+
- secure: "MVFBq+9KIgEHIbo/KmvQHTye9S8Ut0EFDe8qKDweZGJ26tEq0jQ1deVPRZ5winV2g1bYsA+2zhDSyPrM0W0Xa34qnFyV0FDyCo+RTQExPx7KujUF86h3t58dnmUoqhfIsIEQaKgw1z6FrgU5dZej3mg0lrIpOxDcSgZvTyCWyOsleNoV/DcQPyB05G1HFnEvtPRCpAxYYY0AKvAKouF1UqK06YZQM/KroPYobE7zTRTK0Pnl4aV5oOXzi9hVUn/vi5fEazExlI1kN3aA8Ordy8Gu5YwBJR82l9TV1l4uEFClhFhe1xcfwKrWkqzf6JTl4au68r90jfsvTun07zWO4gsVykpiFExoLxADOZ8JJ+/RosrHRJvD4ZWLBBUTSVXudgx61/EVyVqvYymBtu7TOkiVKD7F88s/JwfNACN8GuJdXIwQWsuG24i8mRBBmc8ajDMZc4wMf0gxASzgYlWrNgikuD5G0E7yZSwjlYaD/xXrQu+LrLah7F8HymJmmX+nrSSVbF0wO+ecSR+Hz5pOMtemqOHq5FIQWCjyQUAIVeFyUNzhXeQc0ulgjtJ9ate6MISJ5BQInvrArjPUCmvO0Ft3SuNYtSblYzRa8Bw708nEVwPsAc/D4qqx7wMWNIrliERS9UvrkkXsPhaQDPAoqJJWTr8K/4ieA6VsaM999M4="
40+
41+
before_script:
42+
- 'npm install -g webpack'
43+
44+
before_install:
45+
- 'npm i'
46+
47+
script:
48+
- 'npm test'
49+
50+
after_success:
51+
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
52+
53+
before_deploy:
54+
- 'npm run-script build'
55+
56+
deploy:
57+
provider: npm
58+
skip_cleanup: true
59+
60+
api_key:
61+
secure: "SucdbmVFqC6tF6a9LWASdpVHOS2Wss23HdBrSXmP6KznQuDhs0mdNIaWety6BYvU7KG2yvmb+kMR1zAQ3p0BWbdP7HqkizLN4SNLJrchhIGJ3kgLAjlCG5BrNg1I5QS0KVca0VjowUVIr9+Cwbzzuma5XiLY0ibpVlNP5XJfjvxn19GA0oHp9eaPn7qEUts8ahYUEz7LLop313QUBMtBH7fr++erSaNtcjlbOlyQJZ6FBP3u3rheWljVhYjxAi5PgP544HkPDbyaQatSK6xosWJvQNr+SpdQ6DpgJnWs4xvtWNwppYNBZ3YZFY7Ek3kls7r9Anc1iuIh35Z9Ium87hU1M6g3wk8d31E4C7KybuYajhb0yDm9fykqkJvDUo4spsdXnexYZNjKQq9kVNsinF0rbdMFnSkvTbxj12AFbQTirg686rS87Vn1hc7t3yioyx1u4E/OUc9BH0o1SYX4JZtXaiK+MnghbzqTQsAJ3OZnB+/FD6eTDe+3To+2E/JdMfwCk4uWEY8dWR6qhHjYV7w/TRYmPk0uRMArQa3KP7+3XuEVy1y/2I9kjsFOuzvLWQ1umY0Z9LX+8p85q2rtWCy6bTRbWy6GM8I9jHX7R8ELX/36wCMSFVG5uSi8qBg580dQN4wHNlhzarRlXoA0qE4sPNLWTBP3OzoDmESUGw0="
62+
on:
63+
tags: true
64+
repo: inveniosoftware/invenio-stats-js
65+
branch: master
66+
node: '6.11.2'
67+
68+
after_deploy:
69+
- ./deploy.sh

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
## Invenio-Statistics-Js
1+
## invenio-stats-js
22

3-
[![Release](https://img.shields.io/github/tag/inveniosoftware/invenio-search-js.svg)](https://github.com/inveniosoftware/invenio-search-js/releases)
4-
[![LICENSE](https://img.shields.io/github/license/inveniosoftware/invenio-search-js.svg)](https://github.com/inveniosoftware/invenio-statistics-js/blob/master/LICENSE)
3+
[![Release](https://img.shields.io/github/tag/inveniosoftware/invenio-stats-js.svg)](https://github.com/inveniosoftware/invenio-stats-js/releases)
4+
[![LICENSE](https://img.shields.io/github/license/inveniosoftware/invenio-stats-js.svg)](https://github.com/inveniosoftware/invenio-stats-js/blob/master/LICENSE)
55

66
Invenio-Statistics is a reusable client library for integrating charts into modern web apps. All charts are built with D3.js.
77

@@ -43,12 +43,12 @@ $ npm run docs
4343

4444
Open the docs page in your browser
4545
```bash
46-
$ xdg-open docs/index.html
46+
$ firefox docs/index.html
4747
```
4848

4949
## Usage
5050

51-
Getting started [guide](https://inveniosoftware.github.io/invenio-statistics-js/examples/tutorials/1_started.html)
51+
Getting started [guide](https://inveniosoftware.github.io/invenio-stats-js/examples/tutorials/1_started.html)
5252

5353
## License
5454

deploy.sh

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# This file is part of Invenio.
4+
# Copyright (C) 2017 CERN.
5+
#
6+
# Invenio is free software; you can redistribute it
7+
# and/or modify it under the terms of the GNU General Public License as
8+
# published by the Free Software Foundation; either version 2 of the
9+
# License, or (at your option) any later version.
10+
#
11+
# Invenio is distributed in the hope that it will be
12+
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU General Public License
17+
# along with Invenio; if not, write to the
18+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19+
# MA 02111-1307, USA.
20+
#
21+
# In applying this license, CERN does not
22+
# waive the privileges and immunities granted to it by virtue of its status
23+
# as an Intergovernmental Organization or submit itself to any jurisdiction.
24+
25+
set -e # exit with nonzero exit code if anything fails
26+
27+
# clear and re-create the docs directory
28+
rm -rf docs || exit 0;
29+
30+
# compile docs
31+
npm run-script docs
32+
33+
# go to the docs directory and create a *new* Git repo
34+
git clone -b gh-pages --single-branch https://${GH_TOKEN}@${GH_REF} gh-pages
35+
rm -rf gh-pages/*.html gh-pages/styles gh-pages/scripts
36+
cp -r docs/* gh-pages
37+
cd gh-pages
38+
39+
# set the user to invenio-developer
40+
git config user.name "invenio-developers"
41+
git config user.email "[email protected]"
42+
43+
# add and commit
44+
git add .
45+
git commit -m "docs: deployment to github pages"
46+
47+
# push the docs to gh-pages
48+
git push --quiet origin gh-pages > /dev/null 2>&1

examples/tutorials/1_started.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tutorial: Getting started
22

33
## General
4-
`Invenio-Statistics-Js` helps you visualize statistics expressed in `JSON` format.
4+
`invenio-stats-js` helps you visualize statistics expressed in `JSON` format.
55

66
This module is designed to cooperate with the [Invenio-Stats](https://github.com/inveniosoftware/invenio-stats) module, in order to visualize CDS statistics
77
coming from the ES cluster.
@@ -14,7 +14,7 @@ It currently supports the following types of graphs:
1414
* Grouped Bar graph
1515

1616
## Initialization
17-
Every graph of the `Invenio-Statistics-Js` module requires three parameters in order to be correctly
17+
Every graph of the `invenio-stats-js` module requires three parameters in order to be correctly
1818
rendered inside the `DOM`:
1919

2020
* A `JSON` object as the **input data**. *If no data object is specified, the graph will be blank.*
@@ -25,5 +25,5 @@ a new classed `div` element will be created as the placeholder of the graph.*
2525
* A `JSON` object as the **configuration**. *If no configuration object is specified, the default one is used.*
2626

2727
## Usage
28-
* [Line Graph](https://inveniosoftware.github.io/invenio-statistics-js/examples/tutorials/2_line.html)
29-
* [Bar Graph](https://inveniosoftware.github.io/invenio-statistics-js/examples/tutorials/3_bar.html)
28+
* [Line Graph](https://inveniosoftware.github.io/invenio-stats-js/examples/tutorials/2_line.html)
29+
* [Bar Graph](https://inveniosoftware.github.io/invenio-stats-js/examples/tutorials/3_bar.html)

examples/tutorials/2_line.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classed as `simple-line-graph` is the placeholder of our `SVG` graph and has fix
2424

2525
### 2. Fetching the data
2626
Assuming that we are working with `invenio-stats` as our backend, we have the following API and we'd like to
27-
display retrieved data using the `invenio-statistics-js`.
27+
display retrieved data using the `invenio-stats-js`.
2828

2929
```bash
3030
# Fetch the number of downloads for a specific file in a given time window
@@ -247,7 +247,7 @@ classed as `multi-line-graph` is the placeholder of our `SVG` graph and has fixe
247247

248248
### 2. Fetching the data
249249
Assuming that we are working with `invenio-stats` as our backend, we have the following API and we'd like to
250-
display retrieved data using the `invenio-statistics-js`.
250+
display retrieved data using the `invenio-stats-js`.
251251

252252
```bash
253253
# Fetch the number of downloads and number of views for a specific file in a given time window

examples/tutorials/3_bar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classed as `simple-bar-graph` is the placeholder of our `SVG` graph and has fixe
2424

2525
### 2. Fetching the data
2626
Assuming that we are working with `invenio-stats` as our backend, we have the following API and we'd like to
27-
display retrieved data using the `invenio-statistics-js`.
27+
display retrieved data using the `invenio-stats-js`.
2828

2929
```bash
3030
# Fetch the total number of downloads for each individual file of a specific record in a given time window

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "invenio-statistics-js",
2+
"name": "invenio-stats-js",
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
@@ -61,6 +61,6 @@
6161
},
6262
"repository": {
6363
"type": "git",
64-
"url": "https://github.com/CERNDocumentServer/invenio-statistics-js.git"
64+
"url": "https://github.com/inveniosoftware/invenio-stats-js.git"
6565
}
6666
}

0 commit comments

Comments
 (0)