This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathArcMapTestKickStart.bat
66 lines (59 loc) · 2.49 KB
/
ArcMapTestKickStart.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@ECHO OFF
rem ------------------------------------------------------------------------------
rem Copyright 2017 Esri
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem ------------------------------------------------------------------------------
rem ArcMapTestKickStart.bat
rem ------------------------------------------------------------------------------
rem requirements:
rem * ArcGIS Desktop 10.X+ or ArcGIS Pro 1.X+
rem * Python 2.7
rem * Python added to executable PATH
rem author: ArcGIS Solutions
rem company: Esri
rem ==================================================
rem description:
rem This file starts the test running for Desktop (Python 2.7+) and
rem ArcGIS Pro (Python 3.4+).
rem
rem ==================================================
rem history:
rem 5/9/2016: JH - initial creation
rem 6/1/2016: MF - Add RangeRingUtils.py copy for testing
rem 6/3/2016: MF - work on exit codes
rem 12/22/2016: MF - change back to single execution for Jenkins builds
rem 1/5/2017: MF - separate into Pro and Desktop test BAT
rem ==================================================
REM === LOG SETUP ====================================
REM usage: set LOG=<defaultLogFileName.log>
REM name is optional; if not specified, name will be specified for you
set LOG=
REM === LOG SETUP ====================================
REM === SET ARCPY PATH IF NECESSARY
REM You may need to add/uncomment this section in if ArcMap Python is not already in your PATH
REM SET ARCMAP_PYTHON_PATH=C:\Python27\ArcGIS10.4
REM SET PATH=%ARCMAP_PYTHON_PATH%;%PATH%
REM === SET ARCPY PATH IF NECESSARY
REM === Remove previous scratch workspaces
del /s /q /f scratch.gdb 1>nul
rmdir /s /q scratch.gdb
del /s /q /f %temp%\scratch.gdb 1>nul
rmdir /s /q %temp%\scratch.gdb
REM === Remove previous scratch workspaces
ECHO Testing with ArcMap ===============================
python TestRunner.py %LOG%
REM check if Desktop for ArcGIS/Python 2.7 tests failed
IF %ERRORLEVEL% NEQ 0 (
ECHO 'One or more tests failed'
)
REM pause