Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: tools/toolchain-git-try.sh

Issue 1219743003: Rename toolchain-git-try.sh to toolchain-try.sh (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/toolchain-try.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2 # A script to send toolchain edits in tools/SRC (in git) to toolchain trybots.
3
4 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file.
7
8 cd "$(dirname "$0")"
9 . REVISIONS
10
11 repos='binutils gcc glibc linux-headers-for-nacl newlib'
12
13 trybots_glibc_only="\
14 nacl-toolchain-precise64-glibc\
15 "
16 trybots_glibc="\
17 nacl-toolchain-precise64-glibc,\
18 nacl-toolchain-mac-glibc,\
19 nacl-toolchain-win7-glibc\
20 "
21 trybots_newlib="\
22 nacl-toolchain-precise64-newlib,\
23 nacl-toolchain-mac-newlib,\
24 nacl-toolchain-win7-newlib\
25 "
26
27 tmp='.git-status$$'
28 trap 'rm -f $tmp' 0 1 2 15
29 { git status --porcelain -uno > "$tmp" &&
30 [ -r "$tmp" ] && [ ! -s "$tmp" ]
31 } || {
32 echo >&2 "$0: Start with a clean working directory"
33 exit 1
34 }
35
36 test_all=
37 test_glibc=
38 test_newlib=
39 tryname=try
40 for repo in $repos; do
41 revname="NACL_$(echo "$repo" | tr '[:lower:]-' '[:upper:]_')_COMMIT"
42 patch="toolchain-try.${repo}.patch"
43 (cd "SRC/$repo"; git diff "${!revname}..HEAD") > $patch
44 if [ $? -ne 0 ]; then
45 echo >&2 "$0: error: update SRC/$repo first"
46 exit 2
47 fi
48 if [ -s "$patch" ]; then
49 git add "$patch"
50 tryname="${tryname}-${repo}-$(cd "SRC/$repo";
51 git rev-list -n1 --abbrev-commit HEAD)"
52 case "$repo" in
53 newlib) test_newlib=yes ;;
54 glibc) test_glibc=yes ;;
55 *) test_newlib=yes
56 test_glibc=yes
57 test_all=yes ;;
58 esac
59 else
60 rm -f "$patch"
61 fi
62 done
63
64 if [ -z "$test_all" -a -z "$test_newlib" -a -n "$test_glibc" ]; then
65 trybots="$trybots_glibc_only"
66 else
67 trybots="${test_newlib:+${trybots_newlib}}\
68 ${test_glibc:+${test_newlib:+,}${trybots_glibc}}"
69 fi
70
71 if ! git rev-parse origin/master >/dev/null; then
72 echo >&2 "$0: error: no origin/master branch"
73 exit 3
74 fi
75
76 (set -x
77 git checkout -b "$tryname" origin/master
78 git commit -m "toolchain trybot run: $tryname"
79
80 git try -b "$trybots"
81 )
OLDNEW
« no previous file with comments | « no previous file | tools/toolchain-try.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698