-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
19 changed files
with
363 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Integrate With Gitlab CI | ||
|
||
--- | ||
|
||
> GitLab is a single application for the entire DevOps lifecycle. | ||
## Configuration | ||
|
||
Set `RELIABLE_SERVER_URL` on demand. | ||
|
||
```yaml | ||
before_script: | ||
- export MARMOT_SERVER_URL=http://reliable-host | ||
- export PATH=$PWD/node_modules/.bin:$PATH | ||
- echo $PATH | ||
test: | ||
image: macacajs/macaca-electron-docker | ||
script: | ||
- npm i reliable-cli | ||
- reliable report | ||
tags: | ||
- swarm | ||
``` | ||
[gitlab]: https://about.gitlab.com/install/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
# Reliable-CLI | ||
|
||
--- | ||
|
||
## Installment | ||
|
||
```bash | ||
$ npm i reliable-cli -g | ||
``` | ||
|
||
## Usage | ||
|
||
### report | ||
|
||
```bash | ||
$ reliable report -c ./reliable.config.js | ||
``` | ||
|
||
## Configuration | ||
|
||
```javascript | ||
module.exports = { | ||
files: [ | ||
`build/Release-iphonesimulator/${pkg.name}.app` | ||
], | ||
packages: [ | ||
{ | ||
version, | ||
path: `${pkg.name}.app`, | ||
} | ||
], | ||
testInfo: { | ||
}, | ||
extraInfo: { | ||
} | ||
}; | ||
``` | ||
|
||
|
||
| key | value type | description | | ||
| --- | --- | --- | | ||
| files | `string[]` | extra build artifacts | | ||
| packages | `Obejct[]` | core build artifacts | | ||
| testInfo | `Object` | test coverage report | | ||
| extraInfo | `Object` | extra infomation | | ||
| environment | `Object` | ci runner environment | | ||
| gitCommitInfo | `Object` | last commit log by [last-commit-log](//github.com/node-modules/last-commit-log/) | | ||
|
||
|
||
```json | ||
{ | ||
"files": [], | ||
"packages": [ | ||
], | ||
"testInfo": { | ||
"tests": 4, | ||
"passes": 4, | ||
"linePercent": 91.67, | ||
"passPercent": 100, | ||
"testHtmlReporterPath": "http://your-storage-host/example/c153d93/reports/index.html", | ||
"coverageHtmlReporterPath": "http://your-storage-host/example/c153d93/coverage/index.html" | ||
}, | ||
"extraInfo": { | ||
"webpack": "4.27.1", | ||
"macaca-wd": "2.1.8", | ||
}, | ||
"environment": { | ||
"ci": { | ||
"JOB_NAME": "reliable", | ||
"RUNNER_TYPE": "GITLAB_CI", | ||
"BUILD_NUMBER": "123" | ||
}, | ||
"os": { | ||
"platform": "linux", | ||
"nodeVersion": "v8.12.0" | ||
}, | ||
"platform": "web" | ||
}, | ||
"gitCommitInfo": { | ||
"body": "", | ||
"hash": "9a5ebe6da33ba87a2a70947db2297c0bc3195de1", | ||
"author": { | ||
"date": "1545019270", | ||
"name": "user", | ||
"email": "[email protected]", | ||
"relativeDate": "2 minutes ago" | ||
}, | ||
"gitTag": "", | ||
"gitUrl": "http://gitlab.com/app/reliable", | ||
"subject": "feat: update reliable", | ||
"committer": { | ||
"date": "1545019270", | ||
"name": "user", | ||
"email": "[email protected]", | ||
"relativeDate": "2 minutes ago" | ||
}, | ||
"gitBranch": "feat/toast", | ||
"gitRemote": "http://gitlab-ci-token/app/reliable.git", | ||
"shortHash": "9a5ebe6", | ||
"sanitizedSubject": "feat-update" | ||
} | ||
} | ||
``` | ||
|
||
## Helper Methods | ||
|
||
User helper methods to resolve the iOS and Android platforms. | ||
|
||
```javascript | ||
const helper = require('reliable-cli').helper; | ||
const { | ||
iosUtils, | ||
androidUtils, | ||
webUtils, | ||
} = helper; | ||
|
||
// frequently methods | ||
|
||
https://macacajs.github.io/reliable-cli/ | ||
|
||
``` | ||
|
||
## Environment Variable | ||
|
||
| name | description | | ||
| ----------------- | ---------------------------- | | ||
| RELIABLE_SERVER_URL | server url for Reliable server | | ||
|
||
```bash | ||
$ RELIABLE_SERVER_URL=http://127.0.0.1:9900 ci.sh | ||
``` | ||
|
||
## Integration Samples | ||
|
||
- [ios-app-bootstrap](//github.com/app-bootstrap/ios-app-bootstrap) | ||
- [android-app-bootstrap](//github.com/app-bootstrap/android-app-bootstrap) | ||
- [awesome-practice-projects](//github.com/app-bootstrap/awesome-practice-projects) | ||
- [web-app-bootstrap](//github.com/app-bootstrap/web-app-bootstrap) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Gitlab CI 集成 | ||
|
||
--- | ||
|
||
## GitLab-CI 配置 | ||
|
||
最简单的配置如下: | ||
|
||
其中 RELIABLE_SERVER_URL 按照具体上报的 Reliable 事例地址。 | ||
|
||
```yaml | ||
before_script: | ||
- export MARMOT_SERVER_URL=http://reliable-host | ||
- export PATH=$PWD/node_modules/.bin:$PATH | ||
- echo $PATH | ||
test: | ||
image: macacajs/macaca-electron-docker | ||
script: | ||
- npm i reliable-cli | ||
- reliable report | ||
tags: | ||
- swarm | ||
``` |
2 changes: 1 addition & 1 deletion
2
docs/archive/integrate-with-jenkins.zh-CN.md → docs/zh/guide/integrate-with-jenkins.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Jenkins 集成文档 | ||
# Jenkins 集成 | ||
|
||
--- | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.