OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 set -o xtrace | 6 set -o xtrace |
7 set -o nounset | 7 set -o nounset |
8 set -o errexit | 8 set -o errexit |
9 | 9 |
10 # Tell build.sh and test.sh that we're a bot. | 10 # Tell build.sh and test.sh that we're a bot. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 tc-build-translator() { | 117 tc-build-translator() { |
118 echo @@@BUILD_STEP compile_translator@@@ | 118 echo @@@BUILD_STEP compile_translator@@@ |
119 ${PNACL_BUILD} translator-clean-all | 119 ${PNACL_BUILD} translator-clean-all |
120 ${PNACL_BUILD} translator-all | 120 ${PNACL_BUILD} translator-all |
121 } | 121 } |
122 | 122 |
123 tc-archive() { | 123 tc-archive() { |
124 local label=$1 | 124 local label=$1 |
125 echo @@@BUILD_STEP archive_toolchain@@@ | 125 echo @@@BUILD_STEP archive_toolchain@@@ |
126 ${UP_DOWN_LOAD} UploadPnaclToolchains ${BUILDBOT_GOT_REVISION} \ | 126 ${UP_DOWN_LOAD} UploadToolchainTarball ${BUILDBOT_GOT_REVISION} \ |
127 ${label} pnacl-toolchain.tgz | 127 ${label} pnacl-toolchain.tgz |
128 } | 128 } |
129 | 129 |
130 tc-archive-translator-pexes() { | 130 tc-archive-translator-pexes() { |
131 echo @@@BUILD_STEP archive_translator_pexe@@@ | 131 echo @@@BUILD_STEP archive_translator_pexe@@@ |
132 # NOTE: the build script needs an absolute pathname | 132 # NOTE: the build script needs an absolute pathname |
133 local tarball="$(pwd)/pnacl-translator-pexe.tar.bz2" | 133 local tarball="$(pwd)/pnacl-translator-pexe.tar.bz2" |
134 ${PNACL_BUILD} translator-archive-pexes ${tarball} | 134 ${PNACL_BUILD} translator-archive-pexes ${tarball} |
135 ${UP_DOWN_LOAD} UploadArchivedPexesTranslator \ | 135 ${UP_DOWN_LOAD} UploadArchivedPexesTranslator \ |
136 ${BUILDBOT_GOT_REVISION} ${tarball} | 136 ${BUILDBOT_GOT_REVISION} ${tarball} |
137 } | 137 } |
138 | 138 |
139 tc-prune-translator-pexes() { | 139 tc-prune-translator-pexes() { |
140 echo @@@BUILD_STEP prune_translator_pexe@@@ | 140 echo @@@BUILD_STEP prune_translator_pexe@@@ |
141 ${PNACL_BUILD} translator-prune | 141 ${PNACL_BUILD} translator-prune |
142 } | 142 } |
143 | 143 |
144 tc-archive-translator() { | 144 tc-archive-translator() { |
145 echo @@@BUILD_STEP archive_translator@@@ | 145 echo @@@BUILD_STEP archive_translator@@@ |
146 ${PNACL_BUILD} translator-tarball pnacl-translator.tgz | 146 ${PNACL_BUILD} translator-tarball pnacl-translator.tgz |
147 ${UP_DOWN_LOAD} UploadPnaclToolchains ${BUILDBOT_GOT_REVISION} \ | 147 ${UP_DOWN_LOAD} UploadToolchainTarball ${BUILDBOT_GOT_REVISION} \ |
148 pnacl_translator pnacl-translator.tgz | 148 pnacl_translator pnacl-translator.tgz |
149 } | 149 } |
150 | 150 |
151 tc-build-all() { | 151 tc-build-all() { |
152 local label=$1 | 152 local label=$1 |
153 local is_try=$2 | 153 local is_try=$2 |
154 local build_translator=$3 | 154 local build_translator=$3 |
155 | 155 |
156 # Tell build.sh and test.sh that we're a bot. | 156 # Tell build.sh and test.sh that we're a bot. |
157 export PNACL_BUILDBOT=true | 157 export PNACL_BUILDBOT=true |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 exit 1 | 696 exit 1 |
697 fi | 697 fi |
698 | 698 |
699 "$@" | 699 "$@" |
700 | 700 |
701 if [[ ${RETCODE} != 0 ]]; then | 701 if [[ ${RETCODE} != 0 ]]; then |
702 echo "@@@BUILD_STEP summary@@@" | 702 echo "@@@BUILD_STEP summary@@@" |
703 echo There were failed stages. | 703 echo There were failed stages. |
704 exit ${RETCODE} | 704 exit ${RETCODE} |
705 fi | 705 fi |
OLD | NEW |