From 8a1cdf0196e72dee399ce539ca5b6c628d160ad4 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Wed, 21 Aug 2019 15:06:08 -0700 Subject: [PATCH] Remove Travis and Slather configs, as well as run_tests_update_status.sh We no longer use Travis CI. We haven't found Slather useful. Garrett said run_tests_update_status.sh is not used as well. --- .slather.yml | 5 ----- .travis.yml | 34 ----------------------------- run_tests_update_status.sh | 44 -------------------------------------- 3 files changed, 83 deletions(-) delete mode 100644 .slather.yml delete mode 100644 .travis.yml delete mode 100755 run_tests_update_status.sh diff --git a/.slather.yml b/.slather.yml deleted file mode 100644 index ef84e32de..000000000 --- a/.slather.yml +++ /dev/null @@ -1,5 +0,0 @@ -ci_service: travis_ci -coverage_service: coveralls -xcodeproj: AsyncDisplayKit.xcodeproj -source_directory: AsyncDisplayKit - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b493cff43..000000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: objective-c -cache: - - bundler - - cocoapods -osx_image: xcode8.1 -git: - depth: 10 -before_install: - - brew update - - brew outdated xctool || brew upgrade xctool - - brew outdated carthage || brew upgrade carthage - - gem install cocoapods -v 1.0.1 - - gem install xcpretty -v 0.2.2 - - gem install xcpretty-travis-formatter -# - gem install slather - - xcrun simctl list -install: echo "<3" -env: - - MODE=tests - - MODE=tests_listkit - - MODE=examples-pt1 - - MODE=examples-pt2 - - MODE=examples-pt3 - - MODE=life-without-cocoapods - - MODE=framework -script: ./build.sh $MODE - -#after_success: -# - slather - -# whitelist -branches: - only: - - master diff --git a/run_tests_update_status.sh b/run_tests_update_status.sh deleted file mode 100755 index 3f457c07c..000000000 --- a/run_tests_update_status.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash -set -eo pipefail - -UPDATE_STATUS_PATH=$1 -BUILDKITE_PULL_REQUEST=$2 -BUILDKITE_BUILD_URL=$3 - -function updateStatus() { - if [ "${BUILDKITE_PULL_REQUEST}" != "false" ] ; then - ${UPDATE_STATUS_PATH} "TextureGroup" "Texture" ${BUILDKITE_PULL_REQUEST} "$1" ${BUILDKITE_BUILD_URL} "$2" "CI/Pinterest" "$3" - fi -} - -if [[ -z "${UPDATE_STATUS_PATH}" || -z "${BUILDKITE_PULL_REQUEST}" || -z "${BUILDKITE_BUILD_URL}" ]] ; then - echo "Update status path (${UPDATE_STATUS_PATH}), pull request (${BUILDKITE_BUILD_URL}) or build url (${BUILDKITE_PULL_REQUEST}) unset." - trap - EXIT - exit 255 -fi - -trapped="false" -function trap_handler() { - if [[ "$trapped" = "false" ]]; then - updateStatus "failure" "Tests failed…" `pwd`/log.txt - echo "Tests failed, updated status to failure" - rm `pwd`/log.txt - fi - trapped="true" -} -trap trap_handler INT TERM EXIT - -updateStatus "pending" "Starting build…" - -echo "--- Running Danger" -bundle exec danger --verbose 2>&1|tee `pwd`/log.txt - -./build.sh all 2>&1|tee `pwd`/log.txt - -rm `pwd`/log.txt - -updateStatus "success" "Tests passed" - -echo "All tests succeeded, updated status to success" -trap - EXIT -exit 0 \ No newline at end of file