Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 4bc1a8f

Browse files
committed
feat: make CI tests more interesting
1 parent c00a4c5 commit 4bc1a8f

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"stream": "readable-stream"
1313
},
1414
"engines": {
15-
"node": ">=6.0.0",
16-
"npm": ">=3.0.0"
15+
"node": ">=10.0.0",
16+
"npm": ">6.0.0"
1717
},
1818
"scripts": {
1919
"lint": "aegir lint",
@@ -39,7 +39,6 @@
3939
"async": "^2.6.1",
4040
"bl": "^2.1.2",
4141
"bs58": "^4.0.1",
42-
"buffer-loader": "~0.1.0",
4342
"chai": "^4.2.0",
4443
"cids": "~0.5.5",
4544
"cross-env": "^5.2.0",
@@ -64,7 +63,10 @@
6463
"random-fs": "^1.0.3",
6564
"rimraf": "^2.6.2",
6665
"stream-to-promise": "^2.2.0",
67-
"transform-loader": "~0.2.4"
66+
"transform-loader": "~0.2.4",
67+
"is-ci": "^1.2.1"
6868
},
69-
"contributors": []
69+
"contributors": [],
70+
"dependencies": {
71+
}
7072
}

test/exchange-files.js

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const rimraf = require('rimraf')
1717
const join = require('path').join
1818
const os = require('os')
1919
const hat = require('hat')
20+
const isCi = require('is-ci')
2021

2122
// const isWindows = os.platform() === 'win32'
2223

@@ -32,7 +33,7 @@ function tmpDir () {
3233

3334
const KB = 1024
3435
const MB = KB * 1024
35-
// const GB = MB * 1024
36+
const GB = MB * 1024
3637

3738
const sizes = [
3839
KB,
@@ -48,18 +49,41 @@ const sizes = [
4849
64 * MB,
4950
128 * MB
5051
// 512 * MB,
51-
// GB
52+
// GB,
53+
// 10 * GB,
54+
// 100 * GB,
55+
// 1000 * GB
5256
]
5357

58+
if (isCi) {
59+
sizes.push(
60+
512 * MB,
61+
GB
62+
// 10 * GB,
63+
// 100 * GB,
64+
// 1000 * GB
65+
)
66+
}
67+
5468
const dirs = [
5569
5,
5670
10,
5771
50
5872
// 100,
59-
// 1000
73+
// 1000,
74+
// 10000
6075
]
6176

62-
const timeout = 240 * 1000
77+
if (isCi) {
78+
dirs.push(
79+
100
80+
// 1000,
81+
// 10000
82+
)
83+
}
84+
85+
const min = 60 * 1000
86+
const timeout = isCi ? 15 * min : 5 * min
6387

6488
describe('exchange files', () => {
6589
let goDaemon

0 commit comments

Comments
 (0)