-
Notifications
You must be signed in to change notification settings - Fork 14
/
workflowtests.sh
executable file
·70 lines (44 loc) · 1.45 KB
/
workflowtests.sh
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
67
68
69
70
#!/usr/bin/env bash
#
# workflowtests.sh
# Usage example: ./workflowtests.sh --no-clean
# Set Script Variables
SCRIPT="$("$(dirname "$0")/resolvepath.sh" "$0")"
SCRIPTS_DIR="$(dirname "$SCRIPT")"
ROOT_DIR="$(dirname "$SCRIPTS_DIR")"
CURRENT_DIR="$(pwd -P)"
EXIT_CODE=0
EXIT_MESSAGE=""
# Import Helper Functions
source "$SCRIPTS_DIR/workflowtests/helper_functions.sh"
# Parse Arguments
source "$SCRIPTS_DIR/workflowtests/parse_arguments.sh"
# Setup
trap interrupt SIGINT # Cleanup if the user aborts (Ctrl + C)
# Check For Dependencies
source "$SCRIPTS_DIR/workflowtests/check_dependencies.sh"
# Run Tests
printstep "Running Tests...\n"
# Carthage
source "$SCRIPTS_DIR/workflowtests/carthage_tests.sh"
# Cocoapods
source "$SCRIPTS_DIR/workflowtests/cocoapods_tests.sh"
# Documentation
source "$SCRIPTS_DIR/workflowtests/documentation_tests.sh"
# Swift Package
source "$SCRIPTS_DIR/workflowtests/swift_package_tests.sh"
# SwiftLint
source "$SCRIPTS_DIR/workflowtests/swiftlint_tests.sh"
# XCFramework
source "$SCRIPTS_DIR/workflowtests/xcframework_tests.sh"
# Upload Assets
source "$SCRIPTS_DIR/workflowtests/upload_assets_tests.sh"
# Xcodebuild
printstep "Testing 'xcodebuild.yml' Workflow..."
#source "$SCRIPTS_DIR/workflowtests/xcodebuild_build_tests.sh"
source "$SCRIPTS_DIR/workflowtests/xcodebuild_test_tests.sh"
printstep "'xcodebuild.yml' Workflow Tests Passed\n"
# Test Schemes
source "$SCRIPTS_DIR/workflowtests/test_scheme_tests.sh"
### Success
cleanup