OLD | NEW |
1 set -e | 1 set -e |
2 | 2 |
3 hosts_fixup() { | 3 hosts_fixup() { |
4 echo "travis_fold:start:hosts_fixup" | 4 echo "travis_fold:start:hosts_fixup" |
5 echo "Rewriting hosts file" | 5 echo "Rewriting hosts file" |
6 echo "## /etc/hosts ##" | 6 echo "## /etc/hosts ##" |
7 cat /etc/hosts | 7 cat /etc/hosts |
8 sudo sed -i 's/^::1\s*localhost/::1/' /etc/hosts | 8 sudo sed -i 's/^::1\s*localhost/::1/' /etc/hosts |
9 sudo sh -c 'echo " | 9 sudo sh -c 'echo " |
10 127.0.0.1 web-platform.test | 10 127.0.0.1 web-platform.test |
(...skipping 26 matching lines...) Expand all Loading... |
37 # Installation will fail in cases where the package has unmet dependencies. | 37 # Installation will fail in cases where the package has unmet dependencies. |
38 # When this occurs, attempt to use the system package manager to fetch the | 38 # When this occurs, attempt to use the system package manager to fetch the |
39 # required packages and retry. | 39 # required packages and retry. |
40 if ! sudo dpkg --install $deb_archive; then | 40 if ! sudo dpkg --install $deb_archive; then |
41 sudo apt-get install --fix-broken | 41 sudo apt-get install --fix-broken |
42 sudo dpkg --install $deb_archive | 42 sudo dpkg --install $deb_archive |
43 fi | 43 fi |
44 } | 44 } |
45 | 45 |
46 test_stability() { | 46 test_stability() { |
47 python check_stability.py $PRODUCT | 47 python check_stability.py $PRODUCT --output-bytes $((1024 * 1024 * 3)) |
48 } | 48 } |
49 | 49 |
50 main() { | 50 main() { |
51 hosts_fixup | 51 hosts_fixup |
52 if [ $(echo $PRODUCT | grep '^chrome:') ]; then | 52 if [ $(echo $PRODUCT | grep '^chrome:') ]; then |
53 install_chrome $(echo $PRODUCT | grep --only-matching '\w\+$') | 53 install_chrome $(echo $PRODUCT | grep --only-matching '\w\+$') |
54 fi | 54 fi |
55 test_stability | 55 test_stability |
56 } | 56 } |
57 | 57 |
58 main | 58 main |
OLD | NEW |