summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorjugglinmike <mike@mikepennisi.com>2017-04-10 15:31:19 -0400
committerLeo Balter <leonardo.balter@gmail.com>2017-04-10 15:31:19 -0400
commitbcb7651529bc641bf7bfe1c62efcd7b5bcb5b2ab (patch)
treeaada62db5d9999739a83d80bef8fa18f8937106e /.travis.yml
parentda764cafa28ea15b194ac545dc1b67c707c62296 (diff)
downloadqtdeclarative-testsuites-bcb7651529bc641bf7bfe1c62efcd7b5bcb5b2ab.tar.gz
Automate deployment (#546)
Introduce configuration to allow build servers provided by the Travis CI service to execute the test generation tool and commit the resultant files to the canonical upstream repository. Enabling this workflow required additional administrative work: 1. Create an account with TravisCI 2. Install the `travis` command-line utility 3. Create a "deploy key" and an encrypted version using the command `./make.py github_deploy_key_enc` 4. Register the deploy key with the project's GitHub account 5. Check the encrypted deploy key to the repository 6. Configure the TravisCI service to automatically build this project
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..7abb58118
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,27 @@
+language: python
+install: pip install pyyaml
+script: ./make.py
+after_success: |
+ 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