Skip to content
Snippets Groups Projects
Commit d2ee888b authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

Improve readability for ci scripts (#966)

parent 4dbd7049
No related branches found
No related tags found
No related merge requests found
language: python language: python
install: pip install pyyaml install: pip install pyyaml
script: | script:
if [ $TRAVIS_PULL_REQUEST != "false" ]; then - echo The test generation tool should be working.
./make.py clean - ./tools/generation/test/run.py
fi - sh ./tools/scripts/ci.sh
echo "PULL_REQUEST: '${TRAVIS_PULL_REQUEST}'" deploy:
./make.py - sh ./tools/scripts/deploy.sh
if [ -n "$(git status --porcelain)" -a $TRAVIS_PULL_REQUEST != "false" ]; then
echo New changes were found after re-generating the tests.
echo Please, read the documentation on procedurally generated tests
echo 'https://github.com/tc39/test262/blob/master/CONTRIBUTING.md#procedurally-generated-tests'
exit 1
fi
deploy: |
if [ $TRAVIS_EVENT_TYPE != "push" -o $TRAVIS_BRANCH != "master" ]; then
echo This job is not running against a commit that has been merged to master.
echo Skipping deployment.
exit 0
fi
openssl aes-256-cbc \
-K $encrypted_7b3e5998334d_key \
-iv $encrypted_7b3e5998334d_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 `master` branch must
# be retrieved explicitly, and a local branch created from the `FETCH_HEAD`
# git reference
git fetch origin master
git branch master FETCH_HEAD
./make.py deploy
#!/bin/sh
if [ $TRAVIS_PULL_REQUEST != "false" ]; then
./make.py clean
fi
./make.py
if [ -n "$(git status --porcelain)" -a $TRAVIS_PULL_REQUEST != "false" ]; then
echo New changes were found after re-generating the tests.
echo Please, read the documentation on procedurally generated tests
echo 'https://github.com/tc39/test262/blob/master/CONTRIBUTING.md#procedurally-generated-tests'
exit 1
fi
#!/bin/sh
if [ $TRAVIS_EVENT_TYPE != "push" -o $TRAVIS_BRANCH != "master" ]; then
echo This job is not running against a commit that has been merged to master.
echo Skipping deployment.
exit 0
fi
openssl aes-256-cbc \
-K $encrypted_7b3e5998334d_key \
-iv $encrypted_7b3e5998334d_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 `master` branch must
# be retrieved explicitly, and a local branch created from the `FETCH_HEAD`
# git reference
git fetch origin master
git branch master FETCH_HEAD
./make.py deploy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment