diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..30a9557 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,22 @@ +name: Swift + +on: [push] + +jobs: + test: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + + - name: Run tests + run: xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' | xcpretty -c && exit ${PIPESTATUS[0]} + + build: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + + - name: Build + run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" | xcpretty -c && exit ${PIPESTATUS[0]} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..31cb0e7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Swift + +on: + push: + branches: + - master + tags: + - "v*" + +jobs: + test: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: Install create-dmg + run: npm i -g create-dmg + + - name: Build Archive + run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" | xcpretty -c && exit ${PIPESTATUS[0]} + + - name: Build App + run: xcodebuild -project "MTMR.xcodeproj" -exportArchive -archivePath Release/App.xcarchive -exportOptionsPlist export-options.plist -exportPath Release | xcpretty -c && exit ${PIPESTATUS[0]} + + diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml deleted file mode 100644 index 2e76632..0000000 --- a/.github/workflows/swift.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Swift - -on: [push] - -jobs: - build: - - runs-on: macOS-latest - - steps: - - uses: actions/checkout@v1 - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8fd2c35..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: swift -xcode_project: MTMR.xcodeproj -xcode_scheme: UnitTests -osx_image: xcode11.1 -install: gem install xcpretty -script: "xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' | xcpretty -c && exit ${PIPESTATUS[0]}" diff --git a/MTMR/Info.plist b/MTMR/Info.plist index 99603a5..8c7e7e0 100644 --- a/MTMR/Info.plist +++ b/MTMR/Info.plist @@ -39,7 +39,7 @@ NSHomeKitUsageDescription MTMR needs access to HomeKit for work NSHumanReadableCopyright - Copyright © 2018 Anton Palgunov. All rights reserved. + Copyright © 2018 - 2020 Anton Palgunov. All rights reserved. NSLocationAlwaysAndWhenInUseUsageDescription Weather widget need your location for correct work NSLocationAlwaysUsageDescription