Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | set -e |
| 9 | |
| 10 | source "$CI_ROOT/utils.sh" |
| 11 | |
| 12 | # Clone TF-A Tests repo from tf.org. |
| 13 | if [ ! -d "tf-a-tests" ]; then |
| 14 | git clone --origin tforg $tftf_src_repo_url |
| 15 | cd tf-a-tests |
| 16 | git remote add arm $tftf_arm_gerrit_repo |
| 17 | else |
| 18 | cd tf-a-tests |
| 19 | fi |
| 20 | |
| 21 | # Get the latest updates from the master branch on tf.org. |
| 22 | git remote update --prune |
| 23 | git checkout master |
| 24 | git merge --ff-only tforg/master |
| 25 | |
| 26 | # Push updates to Arm internal Gerrit. |
| 27 | git push arm master |