Meterian
Search…
Example: running the client in interactive mode
Let's run this example with a simple open source project you can find on GitHub; for this exercise let's assume also you already downloaded and stored the client under ~/apps/Meterian-cli.jar
First, let's clone the project from GitHub, for example Eclipse Vert.x:
1
$ git clone [email protected]:eclipse/vert.x.git
2
3
Cloning into 'vert.x'...
4
remote: Counting objects: 110122, done.
5
remote: Compressing objects: 100% (86/86), done.
6
remote: Total 110122 (delta 81), reused 145 (delta 61), pack-reused 109941
7
Receiving objects: 100% (110122/110122), 94.48 MiB | 1.20 MiB/s, done.
8
Resolving deltas: 100% (57513/57513), done.
9
Checking connectivity... done.
Copied!
Now, let's move into the folder and launch the client with the default configuration:
1
$ cd vert.x
2
$ java -jar ~/apps/meterian-cli.jar
3
4
Meterian Client v0.1
5
- running locally: yes
6
- interactive mode: on
7
- working on folder: /tmp/vert.x
8
Checking folder...
9
Folder /tmp/vert.x contains a viable project!
10
Authorizing the client...
11
I cannot find a valid authorization token: I will open the browser so
12
obtain one
13
Please login as usual with your selected credentials
14
Created new window in existing browser session.
Copied!
As you can see the client introduced itself and then, as it's the first time it is launched, is opens a new browser window for you to login with your credentials and authorize it. After a successful login the client will proceed to collect the dependencies, using your local Maven installation (you can also move this task server side, but it's a good idea to execute this step on your local environment). After collecting the dependencies it will upload them to the Meterian servers, where they will be analysed. The client will also output information about the status of the process.
1
Client successfully authorized
2
Loading build status...
3
No build running found!
4
Requesting build...
5
Build allowed
6
Running maven locally...
7
- maven: loading dependency tree...
8
- maven: dependencies generated...
9
Execution successful!
10
Uploading dependencies information - 63 found...
11
Done!
12
Starting build...
13
Current status: in preparation
14
Current status: "cleaning" - last updated at "2017-07-01T16:09:02.189"
Copied!
When the work on the server is finished the client will emit the result of the analysis. The client will also output information about the status of the process, and provide you a link to access the report.
1
Final results:
2
- report: "OK"
3
- security: "0"
4
- stability: "88"
5
- timestamp: "2017-07-01 16:09:02"
6
Full report available at:
7
https://www.meterian.com/projects.html?pid=2fae2c4c-e22b-445c-a2cbcc7796d6c579&branch=master&login=true
Copied!
Opening the link will force you through a login page: please make sure to use a set of credentials associated to your account to access, otherwise you will not be able to see the report.
Last modified 1yr ago
Copy link