mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
* Intentionally break Travis. * Alphabetize tests, remove orphaned test, and add fail to test that's running. * Unbreak test, disable OS X, move scripts, list compiler directory. * Test Java, break test. * Unbreak test, call compile script. * Compile main_compressed.js * Run test command using bash. * Fix path. * Exclude node modules. * Be more specific about JS files to compile. * Test failure. * Restore OSX, undo Blockly failure, remove compilation demo, add compilation test. * Delete manual test files. * Ignore downloaded/generated files. * Whitespace cleanup.
18 lines
628 B
Bash
Executable File
18 lines
628 B
Bash
Executable File
#!/bin/bash
|
|
os_name=`uname`
|
|
chromedriver_dir="chromedriver"
|
|
if [ ! -d $chromedriver_dir ]; then
|
|
mkdir $chromedriver_dir
|
|
fi
|
|
|
|
echo "downloading chromedriver"
|
|
|
|
if [[ $os_name == 'Linux' && ! -f $chromedriver_dir/chromedriver ]]; then
|
|
cd chromedriver && curl -L https://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip > tmp.zip && unzip -o tmp.zip && rm tmp.zip
|
|
# wait until download finish
|
|
sleep 5
|
|
elif [[ $os_name == 'Darwin' && ! -f $chromedriver_dir/chromedriver ]]; then
|
|
cd chromedriver && curl -L https://chromedriver.storage.googleapis.com/2.29/chromedriver_mac64.zip | tar xz
|
|
sleep 5
|
|
fi
|