mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[LOCAL] Run prettier
This commit is contained in:
@@ -128,10 +128,11 @@ async function _findUrlForJob(jobName, artifactPath) {
|
||||
_throwIfJobIsUnsuccessful(job);
|
||||
|
||||
const artifacts = await _getJobsArtifacts(job.job_number);
|
||||
let artifact = artifacts.find(artifact => artifact.path.indexOf(artifactPath) > -1)
|
||||
let artifact = artifacts.find(
|
||||
artifact => artifact.path.indexOf(artifactPath) > -1,
|
||||
);
|
||||
if (!artifact) {
|
||||
throw new Error(`I could not find the artifact with path ${artifactPath}`);
|
||||
|
||||
}
|
||||
return artifact.url;
|
||||
}
|
||||
@@ -161,8 +162,14 @@ async function artifactURLForMavenLocal() {
|
||||
}
|
||||
|
||||
async function artifactURLForReactNative() {
|
||||
let shortCommit = exec('git rev-parse HEAD', {silent: true}).toString().trim().slice(0, 9);
|
||||
return _findUrlForJob('build_npm_package', `react-native-1000.0.0-${shortCommit}.tgz`);
|
||||
let shortCommit = exec('git rev-parse HEAD', {silent: true})
|
||||
.toString()
|
||||
.trim()
|
||||
.slice(0, 9);
|
||||
return _findUrlForJob(
|
||||
'build_npm_package',
|
||||
`react-native-1000.0.0-${shortCommit}.tgz`,
|
||||
);
|
||||
}
|
||||
|
||||
async function artifactURLForHermesRNTesterAPK(emulatorArch) {
|
||||
|
||||
@@ -189,7 +189,10 @@ async function testRNTestProject(circleCIArtifacts) {
|
||||
// in local testing, 1000.0.0 mean we are on main, every other case means we are
|
||||
// working on a release version
|
||||
const buildType = baseVersion !== '1000.0.0' ? 'release' : 'dry-run';
|
||||
const shortCommit = exec('git rev-parse HEAD', {silent: true}).toString().trim().slice(0, 9);
|
||||
const shortCommit = exec('git rev-parse HEAD', {silent: true})
|
||||
.toString()
|
||||
.trim()
|
||||
.slice(0, 9);
|
||||
|
||||
// we need to add the unique timestamp to avoid npm/yarn to use some local caches
|
||||
const dateIdentifier = new Date()
|
||||
|
||||
@@ -170,7 +170,7 @@ async function downloadArtifactsFromCircleCI(
|
||||
) {
|
||||
const mavenLocalURL = await circleCIArtifacts.artifactURLForMavenLocal();
|
||||
const hermesURL = await circleCIArtifacts.artifactURLHermesDebug();
|
||||
const reactNativeURL = await circleCIArtifacts.artifactURLForReactNative()
|
||||
const reactNativeURL = await circleCIArtifacts.artifactURLForReactNative();
|
||||
|
||||
const hermesPath = path.join(
|
||||
circleCIArtifacts.baseTmpPath(),
|
||||
|
||||
Reference in New Issue
Block a user