Skip to content

Commit 14862e3

Browse files
committed
Added .circleci
1 parent 733a40b commit 14862e3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.circleci/config.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
version: 2
2+
workflows:
3+
version: 2
4+
workflow:
5+
jobs:
6+
- MacOS
7+
- Linux
8+
jobs:
9+
MacOS:
10+
macos:
11+
xcode: "9.4"
12+
steps:
13+
- checkout
14+
- restore_cache:
15+
keys:
16+
- v1-spm-deps-{{ checksum "Package.swift" }}
17+
- run:
18+
name: Build and Run SwiftDataLoader Tests
19+
no_output_timeout: 1800
20+
command: |
21+
swift package generate-xcodeproj --enable-code-coverage
22+
xcodebuild -scheme SwiftDataLoader-Package -enableCodeCoverage YES test | xcpretty
23+
- save_cache:
24+
key: v1-spm-deps-{{ checksum "Package.swift" }}
25+
paths:
26+
- .build
27+
Linux:
28+
docker:
29+
- image: swift:4.1
30+
steps:
31+
- checkout
32+
- restore_cache:
33+
keys:
34+
- v2-spm-deps-{{ checksum "Package.swift" }}
35+
- run:
36+
name: Copy Package file
37+
command: cp Package.swift res
38+
- run:
39+
name: Build and Run SwiftDataLoader Tests
40+
no_output_timeout: 1800
41+
command: |
42+
swift test -Xswiftc -DNOJSON
43+
- run:
44+
name: Restoring Package file
45+
command: mv res Package.swift
46+
- save_cache:
47+
key: v2-spm-deps-{{ checksum "Package.swift" }}
48+
paths:
49+
- .build

0 commit comments

Comments
 (0)