|
|
|
@ -88,20 +88,6 @@ local sim_delete_cmd = 'if [ -f build/artifacts/sim_uuid ]; then rm -f /Users/$U
|
|
|
|
|
status: ['failure', 'success'],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Install Codecov CLI',
|
|
|
|
|
commands: [
|
|
|
|
|
'mkdir -p build/artifacts',
|
|
|
|
|
'pip3 install codecov-cli',
|
|
|
|
|
'find $HOME/Library/Python -name codecovcli -print -quit > ./build/artifacts/codecov_path',
|
|
|
|
|
|||
|
|
|
|
|
if [[ ! -s ./build/artifacts/codecov_path ]]; then
|
|
|
|
|
which codecovcli > ./build/artifacts/codecov_path
|
|
|
|
|
fi
|
|
|
|
|
|||,
|
|
|
|
|
'$(<./build/artifacts/codecov_path) --version',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Convert xcresult to xml',
|
|
|
|
|
commands: [
|
|
|
|
@ -109,17 +95,6 @@ local sim_delete_cmd = 'if [ -f build/artifacts/sim_uuid ]; then rm -f /Users/$U
|
|
|
|
|
],
|
|
|
|
|
depends_on: ['Build and Run Tests'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// No token needed for public repos
|
|
|
|
|
name: 'Upload coverage to Codecov',
|
|
|
|
|
commands: [
|
|
|
|
|
'$(<./build/artifacts/codecov_path) upload-process --fail-on-error -f ./build/artifacts/coverage.xml',
|
|
|
|
|
],
|
|
|
|
|
depends_on: [
|
|
|
|
|
'Convert xcresult to xml',
|
|
|
|
|
'Install Codecov CLI',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
// Validate build artifact was created by the direct branch push (PRs only)
|
|
|
|
|