Skip to content

Commit

Permalink
Remove obsolete deploy scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ptomato committed Nov 12, 2024
1 parent 71f7cfa commit 6b38428
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 55 deletions.
3 changes: 0 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 0 additions & 28 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

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)
Expand Down Expand Up @@ -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']()

Expand Down
24 changes: 0 additions & 24 deletions tools/scripts/deploy.sh

This file was deleted.

0 comments on commit 6b38428

Please sign in to comment.