Skip to content

Commit

Permalink
Merge pull request #1748 from thewtex/ci-vm-versions
Browse files Browse the repository at this point in the history
ENH: Update CI testing virtual machine images
  • Loading branch information
thewtex committed Apr 6, 2020
2 parents 49cfbc2 + 136b8e4 commit a476fa9
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 25 deletions.
14 changes: 0 additions & 14 deletions Modules/Core/Common/test/itkHashTableTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,12 @@ itkHashTableTest(int, char *[])
lookup(Set, "apple");
lookup(Set, "durian");

Set.begin();
Set.end();
Set.size();
Set.max_size();
// CppCheck gives us a warning if the return value isn't used.
// This is to prevent the user from calling empty() when they mean clear().
if (Set.empty())
std::cout << "Set is empty." << std::endl;
Set.bucket_count();
Set.rehash(50);
Set.insert("the horror");
Set.count("apple");
Set.find("kiwi");
auto hsh_it = Set.begin();
HashSetType::const_iterator hst_const_it;
hst_const_it = Set.end();
Expand Down Expand Up @@ -120,20 +113,13 @@ itkHashTableTest(int, char *[])
std::cout << "june -> " << months["june"] << std::endl;
std::cout << "november -> " << months["november"] << std::endl;

months.begin();
months.end();
months.size();
months.max_size();
// CppCheck gives us a warning if the return value isn't used.
// This is to prevent the user from calling empty() when they mean clear().
if (months.empty())
std::cout << "Set is empty." << std::endl;
months.bucket_count();
months.rehash(50);
HashMapType::value_type p("psychotic break", 2);
months.insert(p);
months.count("january");
months.find("june");
auto map_it = months.begin();
HashMapType::const_iterator map_const_it;
map_const_it = months.end();
Expand Down
2 changes: 1 addition & 1 deletion Modules/IO/GE/src/itkGE5ImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ GE5ImageIO::ReadHeader(const char * FileNameToRead)

// patient id
std::string tmpId(buffer + VOff(84, 88), 13);
std::remove(tmpId.begin(), tmpId.end(), '-');
(void)std::remove(tmpId.begin(), tmpId.end(), '-');
strncpy(curImage->patientId, tmpId.c_str(), sizeof(curImage->patientId) - 1);
curImage->patientId[sizeof(curImage->patientId) - 1] = '\0';

Expand Down
2 changes: 1 addition & 1 deletion Modules/Video/IO/include/itkVideoFileWriter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ VideoFileWriter<TInputVideoStream>::InitializeOutputParameters()
const VideoStreamType * input = this->GetInput();

// Set dimensions
m_Dimensions.empty();
m_Dimensions.clear();
typename FrameType::SizeType size = input->GetFrameLargestPossibleSpatialRegion(frameNum).GetSize();
for (unsigned int i = 0; i < FrameType::ImageDimension; ++i)
{
Expand Down
2 changes: 1 addition & 1 deletion Testing/ContinuousIntegration/AzurePipelinesBatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: 'Ubuntu-16.04'
vmImage: 'Ubuntu-18.04'

steps:
- checkout: self
Expand Down
2 changes: 1 addition & 1 deletion Testing/ContinuousIntegration/AzurePipelinesLinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04
steps:
- checkout: self
clean: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: ubuntu-16.04
vmImage: ubuntu-18.04
steps:
- checkout: self
clean: true
Expand Down
2 changes: 1 addition & 1 deletion Testing/ContinuousIntegration/AzurePipelinesMacOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: macOS-10.14
vmImage: macOS-10.15
steps:
- checkout: self
clean: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: macOS-10.14
vmImage: macOS-10.15
steps:
- checkout: self
clean: true
Expand Down
4 changes: 2 additions & 2 deletions Testing/ContinuousIntegration/AzurePipelinesWindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-2019'
steps:
- checkout: self
clean: true
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- script: |
cmake --version
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
ctest -S $(Agent.BuildDirectory)/ITK-dashboard/dashboard.cmake -VV -j 4
displayName: 'Build and test'
env:
Expand Down
4 changes: 2 additions & 2 deletions Testing/ContinuousIntegration/AzurePipelinesWindowsPython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: 'vs2017-win2016'
vmImage: 'windows-2019'
steps:
- checkout: self
clean: true
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- script: |
cmake --version
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.2
ctest -S $(Agent.BuildDirectory)/ITK-dashboard/dashboard.cmake -VV -j 4 -L Python
displayName: 'Build and test'
env:
Expand Down

0 comments on commit a476fa9

Please sign in to comment.