diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d26649e1..d7d73f65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Core SDK CI +name: iOS Core SDK CI on: workflow_dispatch: @@ -11,7 +11,7 @@ on: jobs: test: - name: Test ${{ matrix.os }} - ${{ matrix.xcode_version }} - ${{ matrix.fastlane_task }} + name: Test - ${{ matrix.os }} - ${{ matrix.xcode_version }} - ${{ matrix.fastlane_task }} strategy: fail-fast: false matrix: diff --git a/Scripts/travisPublishDocs.sh b/Scripts/travisPublishDocs.sh deleted file mode 100755 index 92b294b4..00000000 --- a/Scripts/travisPublishDocs.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -# Set identity -git config --global user.email "travis-ci-hyperwallet@paypal.com" -git config --global user.name "travis-ci-hyperwallet" - -# Publish docs -mkdir ../gh-pages -cp -r docs/* ../gh-pages/ -cd ../gh-pages - -# Add branch -git init -git remote add origin https://${CI_USER_TOKEN}@github.com/hyperwallet/hyperwallet-ios-sdk.git > /dev/null -git checkout -B gh-pages - -# Push generated files -git add . -git commit -m "Documentation updated" -git push origin gh-pages -fq > /dev/null diff --git a/_skip_travis.yml b/_skip_travis.yml deleted file mode 100644 index 45a59650..00000000 --- a/_skip_travis.yml +++ /dev/null @@ -1,53 +0,0 @@ -language: swift -osx_image: xcode13.4 -os: osx -branches: - only: - - /.*/ -cache: - directories: - - Carthage -env: - global: - - LC_CTYPE=en_US.UTF-8 - - LANG=en_US.UTF-8 - - PROJECT=HyperwalletSDK.xcodeproj - - IOS_FRAMEWORK_SCHEME="HyperwalletSDK" - - matrix: - - ios_version='15.5' ios_device='iPhone 13' scheme="$IOS_FRAMEWORK_SCHEME" platform='iOS Simulator' -before_install: - # Boot the emulator by ID - - xcrun xctrace list devices - - ios_uid=$(xcrun xctrace list devices | grep Simulator | grep "$ios_device Simulator ($ios_version) ([0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\})" | grep -o "[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}") - - echo $ios_uid - - xcrun simctl boot $ios_uid - - # Update the brew and build dependencies tools - - brew update && brew upgrade carthage - - carthage update --platform ios --cache-builds --use-xcframeworks --no-use-binaries - - gem i slather - # Force to update the Swiftlint to the last stable version - - brew outdated swiftlint || brew upgrade swiftlint - # Print the booted emulator - #- xcrun simctl list | grep "(Booted)" - # Print the swiftlint version - - swiftlint version - # Installing Jazzy - - gem install jazzy -script: | - set -o pipefail - set -e - # Define the destination emulator - destination="platform=$platform,OS=$ios_version,name=$ios_device" - # Build and test Framework in Debug - xcodebuild -enableCodeCoverage YES clean build test -project "$PROJECT" \ - -scheme "$scheme" \ - -destination "$destination" \ - -configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO - # Lint - Add `--strict` to fail for warning and violation - swiftlint lint --reporter json -after_success: - # - slather - - make docs - - if [ $TRAVIS_BRANCH = 'master' ] && [ $TRAVIS_PULL_REQUEST = 'false' ]; then sh ./Scripts/travisPublishDocs.sh; fi