OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium 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 # This script copies all dependencies required for trace collection. | 6 # This script copies all dependencies required for trace collection. |
7 # Usage: | 7 # Usage: |
8 # deploy.sh builddir gcs_path | 8 # deploy.sh builddir gcs_path |
9 # | 9 # |
10 # Where: | 10 # Where: |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 # Copy other dependencies. | 28 # Copy other dependencies. |
29 mkdir $tmp_src_dir/third_party | 29 mkdir $tmp_src_dir/third_party |
30 rsync -av --exclude=".*" --exclude "*.pyc" --exclude "*.html" --exclude "*.md" \ | 30 rsync -av --exclude=".*" --exclude "*.pyc" --exclude "*.html" --exclude "*.md" \ |
31 third_party/catapult $tmp_src_dir/third_party | 31 third_party/catapult $tmp_src_dir/third_party |
32 mkdir $tmp_src_dir/tools/perf | 32 mkdir $tmp_src_dir/tools/perf |
33 cp -r tools/perf/chrome_telemetry_build $tmp_src_dir/tools/perf | 33 cp -r tools/perf/chrome_telemetry_build $tmp_src_dir/tools/perf |
34 mkdir -p $tmp_src_dir/build/android | 34 mkdir -p $tmp_src_dir/build/android |
35 cp build/android/devil_chromium.py $tmp_src_dir/build/android/ | 35 cp build/android/devil_chromium.py $tmp_src_dir/build/android/ |
36 cp build/android/video_recorder.py $tmp_src_dir/build/android/ | 36 cp build/android/video_recorder.py $tmp_src_dir/build/android/ |
| 37 cp build/android/devil_chromium.json $tmp_src_dir/build/android/ |
37 cp -r build/android/pylib $tmp_src_dir/build/android/ | 38 cp -r build/android/pylib $tmp_src_dir/build/android/ |
38 mkdir -p $tmp_src_dir/$builddir/gen/ | |
39 cp $builddir/gen/devil_chromium.json $tmp_src_dir/$builddir/gen/ | |
40 mkdir -p \ | 39 mkdir -p \ |
41 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices | 40 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices |
42 cp third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json \ | 41 cp third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json \ |
43 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices/ | 42 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices/ |
44 | 43 |
45 # Tar up the source and copy it to Google Cloud Storage. | 44 # Tar up the source and copy it to Google Cloud Storage. |
46 source_tarball=$tmpdir/source.tgz | 45 source_tarball=$tmpdir/source.tgz |
47 tar -cvzf $source_tarball -C $tmpdir $src_suffix | 46 tar -cvzf $source_tarball -C $tmpdir $src_suffix |
48 gsutil cp $source_tarball gs://$deployment_gcs_path/source/ | 47 gsutil cp $source_tarball gs://$deployment_gcs_path/source/ |
49 | 48 |
50 # Copy the chrome executable to Google Cloud Storage. | 49 # Copy the chrome executable to Google Cloud Storage. |
51 chrome/tools/build/make_zip.py $builddir chrome/tools/build/linux/FILES.cfg \ | 50 chrome/tools/build/make_zip.py $builddir chrome/tools/build/linux/FILES.cfg \ |
52 $tmpdir/linux.zip | 51 $tmpdir/linux.zip |
53 gsutil cp $tmpdir/linux.zip gs://$deployment_gcs_path/binaries/linux.zip | 52 gsutil cp $tmpdir/linux.zip gs://$deployment_gcs_path/binaries/linux.zip |
54 | 53 |
55 # Generate and upload metadata about this deployment. | 54 # Generate and upload metadata about this deployment. |
56 CHROMIUM_REV=$(git merge-base HEAD origin/master) | 55 CHROMIUM_REV=$(git merge-base HEAD origin/master) |
57 cat >$tmpdir/build_metadata.json << EOF | 56 cat >$tmpdir/build_metadata.json << EOF |
58 { | 57 { |
59 "chromium_rev": "$CHROMIUM_REV" | 58 "chromium_rev": "$CHROMIUM_REV" |
60 } | 59 } |
61 EOF | 60 EOF |
62 gsutil cp $tmpdir/build_metadata.json \ | 61 gsutil cp $tmpdir/build_metadata.json \ |
63 gs://$deployment_gcs_path/deployment_metadata.json | 62 gs://$deployment_gcs_path/deployment_metadata.json |
64 rm -rf $tmpdir | 63 rm -rf $tmpdir |
OLD | NEW |