|
@@ -44,34 +44,25 @@ steps:
|
|
|
condition: and(succeeded(), eq(variables['ELECTRON_RELEASE'], '1'))
|
|
|
|
|
|
- bash: |
|
|
|
- echo 'Testing Electron debug build'
|
|
|
+ echo 'Testing Electron build'
|
|
|
mkdir junit
|
|
|
export MOCHA_FILE="junit/test-results.xml"
|
|
|
export MOCHA_REPORTER="mocha-junit-reporter"
|
|
|
- script/test.py --ci --rebuild_native_modules
|
|
|
+ if [ "$ELECTRON_RELEASE" == "1" ]; then
|
|
|
+ script/test.py --ci --rebuild_native_modules -c R
|
|
|
+ else
|
|
|
+ script/test.py --ci --rebuild_native_modules
|
|
|
+ fi
|
|
|
name: Test
|
|
|
- condition: and(succeeded(), ne(variables['ELECTRON_RELEASE'], '1'))
|
|
|
|
|
|
- bash: |
|
|
|
- echo 'Testing Electron release build'
|
|
|
- mkdir junit
|
|
|
- export MOCHA_FILE="junit/test-results.xml"
|
|
|
- export MOCHA_REPORTER="mocha-junit-reporter"
|
|
|
- script/test.py --ci --rebuild_native_modules -c R
|
|
|
- name: Test
|
|
|
- condition: and(succeeded(), eq(variables['ELECTRON_RELEASE'], '1'))
|
|
|
-
|
|
|
-- bash: |
|
|
|
- echo 'Verifying ffmpeg on debug build'
|
|
|
- script/verify-ffmpeg.py
|
|
|
- name: Verify_FFmpeg
|
|
|
- condition: and(succeeded(), ne(variables['ELECTRON_RELEASE'], '1'))
|
|
|
-
|
|
|
-- bash: |
|
|
|
- echo 'Verifying ffmpeg on release build'
|
|
|
- script/verify-ffmpeg.py -R
|
|
|
+ echo 'Verifying ffmpeg on build'
|
|
|
+ if [ "$ELECTRON_RELEASE" == "1" ]; then
|
|
|
+ script/verify-ffmpeg.py -R
|
|
|
+ else
|
|
|
+ script/verify-ffmpeg.py
|
|
|
+ fi
|
|
|
name: Verify_FFmpeg
|
|
|
- condition: and(succeeded(), eq(variables['ELECTRON_RELEASE'], '1'))
|
|
|
|
|
|
- task: PublishTestResults@2
|
|
|
displayName: Publish Test Results
|