diff --git a/scripts/circleci/add_build_info_json.sh b/scripts/circleci/add_build_info_json.sh deleted file mode 100755 index 122d859535b4a..0000000000000 --- a/scripts/circleci/add_build_info_json.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -e - -node ./scripts/release/ci-add-build-info-json.js diff --git a/scripts/circleci/bench.sh b/scripts/circleci/bench.sh deleted file mode 100755 index bbb049667a20f..0000000000000 --- a/scripts/circleci/bench.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -e - -npm run bench \ No newline at end of file diff --git a/scripts/circleci/check_minified_errors.sh b/scripts/circleci/check_minified_errors.sh deleted file mode 100755 index df7673a6ead6a..0000000000000 --- a/scripts/circleci/check_minified_errors.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# Ensure errors are minified in production - -OUT=$(git --no-pager grep -n --untracked --no-exclude-standard 'FIXME (minify-errors-in-prod)' -- './build/*') - -if [ "$OUT" != "" ]; then - echo "$OUT"; - echo -e "\n"; - echo "Detected an unminified error message in the production build. User-facing errors message must have a corresponding error code in scripts/error-codes/codes.json." - exit 1 -fi - -exit 0 diff --git a/scripts/circleci/pack_and_store_artifact.sh b/scripts/circleci/pack_and_store_artifact.sh deleted file mode 100755 index 061101b6fdec2..0000000000000 --- a/scripts/circleci/pack_and_store_artifact.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -set -e - -# Compress build directory into a single tarball for easy download -tar -zcvf ./build.tgz ./build - -# NPM pack all modules to ensure we archive the correct set of files -cd ./build/node_modules -for dir in ./* ; do - npm pack "$dir" -done - -# Compress packed modules into a single tarball for easy download by the publish script -tar -zcvf ../../node_modules.tgz ./*.tgz diff --git a/scripts/circleci/set_up_github_keys.sh b/scripts/circleci/set_up_github_keys.sh deleted file mode 100755 index 4179f1e35b853..0000000000000 --- a/scripts/circleci/set_up_github_keys.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -set -e - -if [ -n "$GITHUB_TOKEN" ]; then - - GH_PAGES_DIR=$(pwd)/../react-gh-pages - echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc - git config --global user.name "Circle CI" - git config --global user.email "circle@reactjs.org" - -fi diff --git a/scripts/circleci/test_coverage.sh b/scripts/circleci/test_coverage.sh deleted file mode 100755 index af5fa9b7b1503..0000000000000 --- a/scripts/circleci/test_coverage.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -e - -yarn test --coverage --maxWorkers=2 -if [ -z "$CI_PULL_REQUEST" ]; then - ./node_modules/.bin/coveralls < ./coverage/lcov.info -fi - -# TODO: should we also track prod code coverage somehow? -# yarn test-prod --coverage diff --git a/scripts/circleci/update_package_versions.sh b/scripts/circleci/update_package_versions.sh deleted file mode 100755 index 3661e80cdef77..0000000000000 --- a/scripts/circleci/update_package_versions.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -e - -node ./scripts/release/ci-update-package-versions.js diff --git a/scripts/release/ci-add-build-info-json.js b/scripts/release/ci-add-build-info-json.js deleted file mode 100755 index 92af86946af7d..0000000000000 --- a/scripts/release/ci-add-build-info-json.js +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env node - -'use strict'; - -// This script is run by Circle CI (see ../scripts/circleci). -// It is not meant to be run as part of the local build or publish process. -// It exists to share code between the Node release scripts and CI bash scripts. - -// IMPORTANT: -// Changes below should be mirrored in ./build-release-locally-commands/add-build-info-json.js - -const {exec} = require('child_process'); -const {existsSync} = require('fs'); -const {join} = require('path'); - -const run = async () => { - const {writeJson, readJson} = require('fs-extra'); - const {getBuildInfo, getPublicPackages} = require('./utils'); - - const cwd = join(__dirname, '..', '..'); - - const { - branch, - buildNumber, - checksum, - commit, - reactVersion, - } = await getBuildInfo(); - - const isExperimental = process.env.RELEASE_CHANNEL === 'experimental'; - const packages = getPublicPackages(isExperimental); - const packagesDir = join(cwd, 'packages'); - - const buildInfoJSON = { - branch, - buildNumber, - checksum, - commit, - environment: 'ci', - reactVersion, - }; - - for (let i = 0; i < packages.length; i++) { - const packageName = packages[i]; - const packagePath = join(packagesDir, packageName); - const packageJSON = await readJson(join(packagePath, 'package.json')); - - // Verify all public packages include "build-info.json" in the files array. - if (!packageJSON.files.includes('build-info.json')) { - console.error( - `${packageName} must include "build-info.json" in files array.` - ); - process.exit(1); - } - - // Add build info JSON to package. - if (existsSync(join(packagePath, 'npm'))) { - const buildInfoJSONPath = join(packagePath, 'npm', 'build-info.json'); - await writeJson(buildInfoJSONPath, buildInfoJSON, {spaces: 2}); - } - } -}; - -// Install (or update) release script dependencies before proceeding. -// This needs to be done before we require() the first NPM module. -exec('yarn install', {cwd: __dirname}, (error, stdout, stderr) => { - if (error) { - console.error(error); - process.exit(1); - } else { - run(); - } -}); diff --git a/scripts/release/ci-update-package-versions.js b/scripts/release/ci-update-package-versions.js deleted file mode 100755 index c5f75eb6b0d23..0000000000000 --- a/scripts/release/ci-update-package-versions.js +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env node - -'use strict'; - -// This script is run by Circle CI (see ../scripts/circleci). -// It is not meant to be run as part of the local build or publish process. -// It exists to share code between the Node release scripts and CI bash scripts. - -const {exec} = require('child_process'); -const {join} = require('path'); - -const run = async () => { - const {getBuildInfo, updateVersionsForNext} = require('./utils'); - - const cwd = join(__dirname, '..', '..'); - - const {reactVersion, version} = await getBuildInfo(); - - await updateVersionsForNext(cwd, reactVersion, version); -}; - -// Install (or update) release script dependencies before proceeding. -// This needs to be done before we require() the first NPM module. -exec('yarn install', {cwd: __dirname}, (error, stdout, stderr) => { - if (error) { - console.error(error); - process.exit(1); - } else { - run(); - } -});