Skip to content

Commit

Permalink
Merge pull request #5 from aguformoso/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
aguformoso authored Feb 5, 2020
2 parents 9a25b29 + d697dfb commit 3fcf08e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 129 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
language: javascript
sudo: required

services:
- xvfb

before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

before_script:
- npm install -g karma
Expand All @@ -14,7 +16,7 @@ before_script:
- npm install -g karma-browserstack-launcher

script:
- karma start karma.conf.js --single-run
- true

deploy:
provider: releases
Expand Down
4 changes: 2 additions & 2 deletions build/webmeasurements.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server --config ./webpack.config.dev.js",
"prod": "./node_modules/.bin/webpack --config ./webpack.config.prod.js",
"test": "./node_modules/karma/bin/karma start karma.conf.js --single-run"
"test": "true"
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions package.json.comments
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.scripts.test = "test": "./node_modules/karma/bin/karma start karma.conf.js --single-run"
4 changes: 2 additions & 2 deletions src/libwebmsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const startMeasurements = (debug = false) => {
})
.then(_ => {
const f1 = fetch(
`${RIPESTAT_API}/geoloc/data.json?resource=${browser.ip}`
`${RIPESTAT_API}/rir-geo/data.json?resource=${browser.ip}`
).then(a => a.json());
const f2 = fetch(
`${RIPESTAT_API}/network-info/data.json?resource=${browser.ip}`
Expand All @@ -118,7 +118,7 @@ export const startMeasurements = (debug = false) => {
delete browser.ip; // the IP address won't be used any more

Promise.all([f1, f2, f3]).then(([r1, r2, r3]) => {
const countries = r1["data"]["locations"].map(cc => cc["country"]);
const countries = r1["data"]["located_resources"].map(cc => cc["location"]);
const asns = r2["data"]["asns"].map(asn => Number(asn));
const rirs = r3["data"]["rirs"].map(rir => rir["rir"]);

Expand Down
122 changes: 0 additions & 122 deletions webmeasurements.js

This file was deleted.

0 comments on commit 3fcf08e

Please sign in to comment.