Skip to content

Commit 7deab45

Browse files
authored
Merge branch 'master' into fix/root-ref
2 parents c81f699 + 3db6013 commit 7deab45

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ matrix:
2828
env: REACT=16
2929
- node_js: "lts/*"
3030
env: REACT=16.8.5 RENDERER=16.8.5
31+
- node_js: "lts/*"
32+
env: REACT=16.8.5 RENDERER=16.8.3
3133
- node_js: "lts/*"
3234
env: REACT=16.8.3
3335
- node_js: "lts/*"
@@ -65,6 +67,10 @@ matrix:
6567
env: KARMA=true REACT=15
6668
- node_js: "6"
6769
env: KARMA=true REACT=16
70+
- node_js: "lts/*"
71+
env: REACT=16.8.5 RENDERER=16.8.3
72+
- node_js: "lts/*"
73+
env: REACT=16.8 RENDERER=16.7
6874
exclude:
6975
- node_js: "6"
7076
env: REACT=0.13

env.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,20 @@ Promise.resolve()
129129
.map(key => `${key}@${key.startsWith('react') ? reactVersion : peerDeps[key]}`);
130130

131131
if (process.env.RENDERER) {
132-
installs.push(`react-test-renderer@${process.env.RENDERER}`);
132+
// eslint-disable-next-line no-param-reassign
133+
adapterJson.dependencies['react-test-renderer'] = process.env.RENDERER;
133134
}
134135

135136
// eslint-disable-next-line no-param-reassign
136137
testJson.dependencies[adapterName] = adapterJson.version;
137138

138-
return Promise.all([
139+
return writeJSON(adapterPackageJsonPath, adapterJson, true).then(() => Promise.all([
139140
// npm install the peer deps at the root
140141
run('npm', 'i', '--no-save', ...installs),
141142

142143
// add the adapter to the dependencies of the test suite
143144
writeJSON(testPackageJsonPath, testJson, true),
144-
]);
145+
]));
145146
})
146147
.then(() => run('lerna', 'bootstrap', '--hoist=\'react*\''))
147148
.then(() => getJSON(testPackageJsonPath))

0 commit comments

Comments
 (0)