ce8b7af46b
- Remove the `brew install`; the kokoro image already has it, just update/upgrade instead. - Remove `prune`, logs had: """ Error: Unknown command: prune """ - Remove `uninstall`, logs had: """ Error: Refusing to uninstall /usr/local/Cellar/cmake/3.16.4 and /usr/local/Cellar/icu4c/64.2 because they are required by ceres-solver, ffmpeg, harfbuzz, libass and opencv, which are currently installed. You can override this and force removal with: brew uninstall --ignore-dependencies node icu4c cmake wget """ - Skip installing some things since they are already in the base image, logs had: """ Warning: gflags 2.2.2 is already installed and up-to-date To reinstall 2.2.2, run `brew reinstall gflags` Warning: openssl@1.1 1.1.1g is already installed and up-to-date To reinstall 1.1.1g, run `brew reinstall openssl@1.1` Warning: pcre 8.44 is already installed and up-to-date To reinstall 8.44, run `brew reinstall pcre` """ - Don't install gpg gpg2 as gnupg is already installed, also use gpg instead of gpg2 for commands (and update the commands), logs had: """ kokoro/macos/prepare_build_macos_rc: line 44: gpg2: command not found kokoro/macos/prepare_build_macos_rc: line 45: gpg2: command not found """ - Add env guards to control all the option installs and only request them be installed in the cases that need it. This avoids having to install/update the things like ruby when some other tool only needed in some configs is install differently and could have conflicts. - Switch to brew for cocoapods to avoid compat issues on the supporting libraries.
14 lines
252 B
Bash
Executable File
14 lines
252 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Build file to set up and run tests
|
|
|
|
# Change to repo root
|
|
cd $(dirname $0)/../../..
|
|
|
|
# Prepare worker environment to run tests
|
|
KOKORO_INSTALL_RUBY=yes
|
|
KOKORO_INSTALL_RVM=yes
|
|
source kokoro/macos/prepare_build_macos_rc
|
|
|
|
./tests.sh ruby25
|