Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Fix/cleanup pipeline (#263)
Browse files Browse the repository at this point in the history
* Remove nrftc repo
* Add S130 in tests
* Make errors stop test pipeline
* Update with nrftc argument change
  • Loading branch information
kenr authored Feb 22, 2021
1 parent 777b69d commit b630b06
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
# Windows
- script: |
pip3 install --use-deprecated legacy-resolver nrfutil
$(System.ArtifactsDirectory)/nrftc install -a $(Agent.BuildDirectory)\toolchain -i armgcc:${{ parameters.ARMGCC_VERSION }} -e $(Agent.BuildDirectory)\tcenv.bat
$(System.ArtifactsDirectory)/nrftc install arm-toolchain -a $(Agent.BuildDirectory)\toolchain -i armgcc:${{ parameters.ARMGCC_VERSION }} -e $(Agent.BuildDirectory)\tcenv.bat
echo "Exported environment variables:"
cat $(Agent.BuildDirectory)/tcenv.bat
choco install ninja make
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
/usr/bin/python3 -m pip install -U pip
/usr/bin/python3 -m pip install nrfutil
chmod a+x $(System.ArtifactsDirectory)/nrftc
$(System.ArtifactsDirectory)/nrftc install -a $(Agent.BuildDirectory)/toolchain -i armgcc:${{ parameters.ARMGCC_VERSION }} -e $(Agent.BuildDirectory)/tcenv.sh
$(System.ArtifactsDirectory)/nrftc install arm-toolchain -a $(Agent.BuildDirectory)/toolchain -i armgcc:${{ parameters.ARMGCC_VERSION }} -e $(Agent.BuildDirectory)/tcenv.sh
cat $(Agent.BuildDirectory)/tcenv.sh
chmod a+x $(Agent.BuildDirectory)/tcenv.sh
condition: contains(variables['imageName'], 'ubuntu')
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
export PYTHON_EXECUTABLE=`pyenv which python`
$PYTHON_EXECUTABLE -m pip install nrfutil
chmod a+x $(System.ArtifactsDirectory)/nrftc
$(System.ArtifactsDirectory)/nrftc install -a $(Agent.BuildDirectory)/toolchain -i armgcc:${{ parameters.ARMGCC_VERSION }} -e $(Agent.BuildDirectory)/tcenv.sh
$(System.ArtifactsDirectory)/nrftc install arm-toolchain -a $(Agent.BuildDirectory)/toolchain -i armgcc:${{ parameters.ARMGCC_VERSION }} -e $(Agent.BuildDirectory)/tcenv.sh
cat $(Agent.BuildDirectory)/tcenv.sh
chmod a+x $(Agent.BuildDirectory)/tcenv.sh
condition: contains(variables['imageName'], 'mac')
Expand Down Expand Up @@ -327,8 +327,8 @@ jobs:
mkdir %TEST_REPORT_DIR%
set INSTALL_PATH=$(Pipeline.Workspace)\_e\$(EXTRACT_DIR)
set PATH=c:\opt\nrf-device-lib-install\bin;%PATH%
$(System.ArtifactsDirectory)/nrftc -vvv tests-nrf-ble-driver -i %INSTALL_PATH% -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o %TEST_REPORT_DIR% --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: true
$(System.ArtifactsDirectory)/nrftc nrf-ble-driver run-tests -i %INSTALL_PATH% -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o %TEST_REPORT_DIR% --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: false
failOnStderr: false
timeoutInMinutes: ${{ parameters.TEST_TIMEOUT }}
displayName: 'Run Windows(x86) tests'
Expand Down Expand Up @@ -373,8 +373,8 @@ jobs:
mkdir %TEST_REPORT_DIR%
set INSTALL_PATH=$(Pipeline.Workspace)\_e\$(EXTRACT_DIR)
set PATH=c:\opt\nrf-device-lib-install\bin;%PATH%
$(System.ArtifactsDirectory)/nrftc -vvv tests-nrf-ble-driver -i %INSTALL_PATH% -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o %TEST_REPORT_DIR% --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: true
$(System.ArtifactsDirectory)/nrftc nrf-ble-driver run-tests -i %INSTALL_PATH% -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o %TEST_REPORT_DIR% --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: false
failOnStderr: false
timeoutInMinutes: ${{ parameters.TEST_TIMEOUT }}
displayName: 'Run Windows(x64) tests'
Expand Down Expand Up @@ -425,8 +425,8 @@ jobs:
export PATH=$NRF_DEVICE_LIB_INSTALL:$PATH
chmod a+x $(System.ArtifactsDirectory)/nrftc
$(System.ArtifactsDirectory)/nrftc -vvv tests-nrf-ble-driver -i $INSTALL_DIR -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o $TEST_REPORT_DIR --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: true
$(System.ArtifactsDirectory)/nrftc nrf-ble-driver run-tests -i $INSTALL_DIR -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o $TEST_REPORT_DIR --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: false
failOnStderr: false
timeoutInMinutes: ${{ parameters.TEST_TIMEOUT }}
displayName: 'Run tests'
Expand Down Expand Up @@ -477,8 +477,8 @@ jobs:
chmod a+x $INSTALL_DIR/bin/test*
export LD_LIBRARY_PATH=$(Pipeline.Workspace)/lib:$NRF_DEVICE_LIB_INSTALL
chmod a+x $(System.ArtifactsDirectory)/nrftc
$(System.ArtifactsDirectory)/nrftc -vvv tests-nrf-ble-driver -i $INSTALL_DIR -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o $TEST_REPORT_DIR --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: true
$(System.ArtifactsDirectory)/nrftc nrf-ble-driver run-tests -i $INSTALL_DIR -c ${{ parameters.ITERATIONS_TEST }} -d ${{ parameters.TEST_DRIVER_LOG_LEVEL }} -l ${{ parameters.TEST_LOG_LEVEL }} -o $TEST_REPORT_DIR --exclude-softdevice-types ${{ parameters.TEST_EXCLUDE_SOFTDEVICE_TYPES }} --resume-on-test-failure
continueOnError: false
failOnStderr: false
timeoutInMinutes: ${{ parameters.TEST_TIMEOUT }}
displayName: 'Run macOS(x64) tests'
Expand Down

0 comments on commit b630b06

Please sign in to comment.