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/ | |
38 cp -r build/android/pylib $tmp_src_dir/build/android/ | 37 cp -r build/android/pylib $tmp_src_dir/build/android/ |
39 mkdir -p \ | 38 mkdir -p \ |
40 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices | 39 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices |
41 cp third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json \ | 40 cp third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json \ |
42 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices/ | 41 $tmp_src_dir/third_party/WebKit/Source/devtools/front_end/emulated_devices/ |
43 | 42 |
44 # Tar up the source and copy it to Google Cloud Storage. | 43 # Tar up the source and copy it to Google Cloud Storage. |
45 source_tarball=$tmpdir/source.tgz | 44 source_tarball=$tmpdir/source.tgz |
46 tar -cvzf $source_tarball -C $tmpdir $src_suffix | 45 tar -cvzf $source_tarball -C $tmpdir $src_suffix |
47 gsutil cp $source_tarball gs://$deployment_gcs_path/source/ | 46 gsutil cp $source_tarball gs://$deployment_gcs_path/source/ |
48 | 47 |
49 # Copy the chrome executable to Google Cloud Storage. | 48 # Copy the chrome executable to Google Cloud Storage. |
50 chrome/tools/build/make_zip.py $builddir chrome/tools/build/linux/FILES.cfg \ | 49 chrome/tools/build/make_zip.py $builddir chrome/tools/build/linux/FILES.cfg \ |
51 $tmpdir/linux.zip | 50 $tmpdir/linux.zip |
52 gsutil cp $tmpdir/linux.zip gs://$deployment_gcs_path/binaries/linux.zip | 51 gsutil cp $tmpdir/linux.zip gs://$deployment_gcs_path/binaries/linux.zip |
53 | 52 |
54 # Generate and upload metadata about this deployment. | 53 # Generate and upload metadata about this deployment. |
55 CHROMIUM_REV=$(git merge-base HEAD origin/master) | 54 CHROMIUM_REV=$(git merge-base HEAD origin/master) |
56 cat >$tmpdir/build_metadata.json << EOF | 55 cat >$tmpdir/build_metadata.json << EOF |
57 { | 56 { |
58 "chromium_rev": "$CHROMIUM_REV" | 57 "chromium_rev": "$CHROMIUM_REV" |
59 } | 58 } |
60 EOF | 59 EOF |
61 gsutil cp $tmpdir/build_metadata.json \ | 60 gsutil cp $tmpdir/build_metadata.json \ |
62 gs://$deployment_gcs_path/deployment_metadata.json | 61 gs://$deployment_gcs_path/deployment_metadata.json |
63 rm -rf $tmpdir | 62 rm -rf $tmpdir |
OLD | NEW |