]> granicus.if.org Git - check/commitdiff
AppVeyor build for ARM CPUs can not be tested on x86/x64 build machines
authorbel2125 <bel2125@gmail.com>
Wed, 30 Aug 2017 17:21:15 +0000 (19:21 +0200)
committerbel2125 <bel2125@gmail.com>
Wed, 30 Aug 2017 17:21:15 +0000 (19:21 +0200)
appveyor.yml

index ef73d923fa054a7c393143392cdee06b442c9baa..5a657d92a6417fc33c457b543e82f95a2e82b820 100644 (file)
@@ -97,6 +97,9 @@ configuration: Release
 # scripts to run before build
 before_build:
   - cd c:\projects\check
+  - echo Directory before starting build...
+  - dir
+  - echo Starting pre-build step...
   # Remove the following from the path, as it will interfere with
   # the MinGW builds
   - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
@@ -106,13 +109,17 @@ before_build:
       set "makecommand=Visual Studio"
     )
   - set "vcx=false"
+  - set "vcs=false"
   - if %platform%==vs (
       set "vcx=true"
     )
   - if %vsversion%==2005 (
-      set "vcx=false"
+      set "vcs=true"
     )
   - if %vsversion%==2008 (
+      set "vcs=true"
+    )
+  - if %vcs%==true (
       set "vcx=false"
     )
   - if %vsversion%==2005 (
@@ -173,18 +180,25 @@ before_build:
 
 build_script:
   # build code and unit tests
+  - echo Directory before running build step...
   - dir
+  - echo Building code...
   - if %platform%==msvc nmake
   - if %platform%==cygwin bash -c "make"
   - if %platform%==mingw32 mingw32-make
   - if %platform%==mingw64msys bash -c "make"
   - if %vcx%==true msbuild /p:Platform=%arch% "ALL_BUILD.vcxproj"
-
-# TODO: msbuild does not work with .vcproj files
-
+  - if %vcs%==true msbuild "check.sln"
 
 test_script:
-  # run unit tests
+  # run unit tests (except for ARM, since we use x86/x64 build images)
+  - if %arch%==ARM (
+      exit 0
+    )
+  - echo Project directory before running test step...
+  - dir
+  - echo tests directory before running test step...
+  - dir tests
   - echo Running unit tests...
   - if %platform%==msvc nmake test VERBOSE=1 CTEST_OUTPUT_ON_FAILURE=TRUE
   - if %platform%==vs ctest --extra-verbose -C Release