Skip to content

Commit 40c684f

Browse files
authored
GitHub actions (#271)
* build xcode * final build test * delete travisCI
1 parent 093faa2 commit 40c684f

File tree

5 files changed

+54
-22
lines changed

5 files changed

+54
-22
lines changed

.github/workflows/build-test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Swift
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: macOS-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
12+
- name: Run tests
13+
run: xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' | xcpretty -c && exit ${PIPESTATUS[0]}
14+
15+
build:
16+
runs-on: macOS-latest
17+
18+
steps:
19+
- uses: actions/checkout@v1
20+
21+
- name: Build
22+
run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" | xcpretty -c && exit ${PIPESTATUS[0]}

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- "v*"
9+
10+
jobs:
11+
test:
12+
runs-on: macOS-latest
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 12.x
21+
22+
- name: Install create-dmg
23+
run: npm i -g create-dmg
24+
25+
- name: Build Archive
26+
run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" | xcpretty -c && exit ${PIPESTATUS[0]}
27+
28+
- name: Build App
29+
run: xcodebuild -project "MTMR.xcodeproj" -exportArchive -archivePath Release/App.xcarchive -exportOptionsPlist export-options.plist -exportPath Release | xcpretty -c && exit ${PIPESTATUS[0]}
30+
31+

.github/workflows/swift.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

MTMR/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<key>NSHomeKitUsageDescription</key>
4040
<string>MTMR needs access to HomeKit for work</string>
4141
<key>NSHumanReadableCopyright</key>
42-
<string>Copyright © 2018 Anton Palgunov. All rights reserved.</string>
42+
<string>Copyright © 2018 - 2020 Anton Palgunov. All rights reserved.</string>
4343
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
4444
<string>Weather widget need your location for correct work</string>
4545
<key>NSLocationAlwaysUsageDescription</key>

0 commit comments

Comments
 (0)