Remove obsolete deploy scripts

We do not use these anymore. Generated tests are included in PRs and not
deployed separately. The deploy key encryption relies on TravisCI which we
don't use anymore, anyway.
This commit is contained in:
Philip Chimento 2024-11-04 16:06:39 -08:00 committed by Philip Chimento
parent 71f7cfab83
commit 6b38428da1
3 changed files with 0 additions and 55 deletions

View File

@ -61,9 +61,6 @@ jobs:
- run:
name: "Lint tests"
command: ./tools/scripts/ci_lint.sh
# - run:
# name: "Run deploy"
# command: ./tools/scripts/deploy.sh
"V8: New or modified tests execution":
docker:
- image: *node_image

28
make.py
View File

@ -7,8 +7,6 @@ import os, shutil, subprocess, sys
OUT_DIR = os.environ.get('OUT_DIR') or 'test'
SRC_DIR = os.environ.get('SRC_DIR') or 'src'
UPSTREAM = os.environ.get('UPSTREAM') or 'git@github.com:tc39/test262.git'
MAINTAINER = os.environ.get('MAINTAINER') or 'test262@ecma-international.org'
def shell(*args):
sp = subprocess.Popen(list(args), stdout=subprocess.PIPE, universal_newlines=True)
@ -50,32 +48,6 @@ def build():
def clean():
shell(sys.executable, 'tools/generation/generator.py', 'clean', OUT_DIR)
@target('clean', 'build')
def deploy():
shell('git', 'add', '--all', OUT_DIR)
shell('git', 'commit', '--message', '"Re-build from source"')
shell('git', 'push', UPSTREAM, 'main')
shell('git', 'checkout', '-')
# Generate a deploy key for use in a continuous integration system, allowing
# for automated deployment in response to merge events.
@target()
def github_deploy_key():
shell('ssh-keygen',
'-t', 'rsa',
'-b', '4096',
'-C', MAINTAINER,
'-f', 'github-deploy-key')
# Encrypt the deploy key so that it may be included in the repository (to be
# decrypted by the continuous integration server during automated deployment)
# This requires the "travis" Ruby gem
# Source: https://docs.travis-ci.com/user/encrypting-files/
@target('github_deploy_key')
def github_deploy_key_enc():
shell('travis', 'login')
shell('travis', 'encrypt-file', 'github-deploy-key')
if len(sys.argv) == 1:
targets['build']()

View File

@ -1,24 +0,0 @@
#!/bin/sh
if [ $CIRCLE_EVENT_TYPE != "push" -o $CIRCLE_BRANCH != "main" ]; then
echo This job is not running against a commit that has been merged to main.
echo Skipping deployment.
exit 0
fi
openssl aes-256-cbc \
-K $encrypted_4c3763264a8a_key \
-iv $encrypted_4c3763264a8a_iv \
-in github-deploy-key.enc \
-out github-deploy-key \
-d
chmod 600 github-deploy-key
eval "$(ssh-agent -s)"
ssh-add github-deploy-key
rm github-deploy-key
git config --global user.email "test262@ecma-international.org"
git config --global user.name "Test262 Automation Script"
# The repository on TravisCI is a shallow clone, so the `main` branch must
# be retrieved explicitly, and a local branch created from the `FETCH_HEAD`
# git reference
git fetch origin main
git branch main FETCH_HEAD
./make.py deploy