Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test262
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pmaksimo
test262
Commits
d2ee888b
Commit
d2ee888b
authored
7 years ago
by
Leo Balter
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improve readability for ci scripts (#966)
parent
4dbd7049
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+6
-36
6 additions, 36 deletions
.travis.yml
tools/scripts/ci.sh
+11
-0
11 additions, 0 deletions
tools/scripts/ci.sh
tools/scripts/deploy.sh
+24
-0
24 additions, 0 deletions
tools/scripts/deploy.sh
with
41 additions
and
36 deletions
.travis.yml
+
6
−
36
View file @
d2ee888b
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
This diff is collapsed.
Click to expand it.
tools/scripts/ci.sh
0 → 100644
+
11
−
0
View file @
d2ee888b
#!/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
This diff is collapsed.
Click to expand it.
tools/scripts/deploy.sh
0 → 100644
+
24
−
0
View file @
d2ee888b
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment