169 Commits

Author SHA1 Message Date
Adrian Secord
1969731cfe Fix version number updating. Fixes #2754. 2018-01-08 07:39:43 -05:00
Yarden Eitan
34ced9ee9a update our release script to support CocoaPods publishing (#2802)
* update release script to have a podspec push

* remove linting

* checking pod permission before, removing --allow-warnings
2018-01-05 16:52:42 -05:00
featherless
88a93244ab
Reduce error output from the bump command. (#2754)
The following changes were made:

- The global grep is now a non-regular expression search. This will avoid treating the version '.' as a wildcard.
- We ignore any of the bazel output directories.
- We pipe stderr to null so that invalid directories don't appear in the output.
2017-12-22 11:02:11 -05:00
Randall Li
fe88c3dfb0 [Release] Make release test not check for release-candidate (#2758)
Release instructions ask us to run it after we have merged.

https://github.com/material-components/material-components-ios/blob/develop/contributing/releasing.md#merge-the-release-candidate-branch

We also may want to just test without having created a release candidate.
2017-12-22 10:30:16 -05:00
Jeff Verkoeyen
a0ba8ed55a Fix minor typos in the release publish command. 2017-12-12 10:54:13 -05:00
Jeff Verkoeyen
fb90cb8acc Remove references to scripts/release/ paths. 2017-12-11 13:45:18 -05:00
Jeff Verkoeyen
1663ee2edc Update the Material Motion API diff tool checkout. 2017-12-11 12:50:48 -05:00
Jeff Verkoeyen
d45978aff1 Fix one more minor typo in the release scripting. 2017-12-11 12:48:41 -05:00
Jeff Verkoeyen
f86fa7b2b6 Fix bug where scripts/release cut wouldn't extract the API diff changes file properly.
It was extracting a string with a leading space - this is no longer the case.
2017-12-11 12:45:34 -05:00
featherless
98338f58cc
Migrate Material Motion's release toolchain to MDC (#2627) 2017-12-11 10:17:48 -05:00
Adrian Secord
6da7d0af51
[LibraryInfo] Fix version numbers for statically-compiled components. (#2544)
* Switched to hard-coded version string.

* Updating to current version and clarifying comments.

* Updated bump script to update LibraryInfo source version.

* Added actual replacement to bump script.

* Documented constants, changed version file name to a path.

* Fixed single-value tuple issue.

* Added note about string copy.
2017-11-30 14:25:27 -05:00
Adrian Secord
f5d3e30844
Move source of truth for version numbers outside of Cocoapods (#2442)
* Added VERSION, scripts/print_version, and updated docs.

* Updating script.

* Stop invoking `pod install` after the first time.

* Remove unneeded `pod install` steps.

* Added ref to print_version.

* Updated instructions in contributing/releasing.md.
2017-11-16 07:52:36 -05:00
Yurii Samsoniuk
d18cb18174 Added a script to check that umbrella header are used between components (#2241) 2017-10-25 18:50:56 -04:00
Adrian Secord
5f8d94f1bb Merge branch 'release-candidate' 2017-10-05 15:59:09 -04:00
featherless
c4160415f0 Add authors release script. (#2101)
Dumps the list of authors involved in a given release.
2017-10-05 14:57:15 -04:00
Adrian Secord
8f2e5bf821 80-character limit. 2017-10-03 15:24:25 -04:00
Adrian Secord
8637620eb2 Fix prep_all script to not update the CocoaPods repo in each directory. 2017-10-03 15:21:59 -04:00
featherless
286adf335c Use not instead of ! in manage_pods.py. (#2082) 2017-10-03 09:32:33 -04:00
featherless
d7a7e9a524 Default CocoaPods install to update the pods repo. (#2081)
CocoaPods updated their default install behavior some time ago to not update the pods repo, but our pods management script still appeared to be assuming that it did update the repo. This change inverts our pod install logic so that it updates the spec repo by default.

This resolves some Travis CI failures we've seen when downstream pod releases get published but not picked up by the Travis CI instance's pre-imaged pods repo.
2017-10-03 09:01:36 -04:00
Adrian Secord
5445fb2110 [Scripts] Add readme metadata config check (#1775)
* Added script to list the directories of our components.

* Add check for metadata to the readme check.

* Improved the output format for `list_components` on the terminal.

* Switched `check_components` script to use `list_components`.

* Update list_components
2017-08-11 10:02:19 -04:00
Robert Moore
87f57ae554 [Scripts] Only lint catalog, components, and demos (#1744)
The lint_all script should stick to the MDC-iOS code and not the docs,
scripts, etc. that are included in the repository.  Specifically, we are
only linting the Components, Catalog, and Demos that we ship.

Closes #1578
2017-08-07 12:27:10 -04:00
Robert Moore
565ae15cdb [Collections] Use image cache for selection icons (#1638)
* [Icons] Add icon method for use with imageNamed

Icon images are currently loaded manually from a path in a bundle and therefore bypass the internal UIImage caching mechanism. This change will add new methods that provide the icon images via the -imageNamed family of methods.

Closes #1637, #1606
2017-07-14 16:50:39 -04:00
Will Larche
cf6da2e8c9 [Testing] Travis testing devices updates. (#1595)
* [Testing] Updating test_all for multiple devices.

* [Testing] Setting Travis device matrix to use a 32-bit device.

* [Testing] Comments in Travis file.

* [Testing] Bumping Travis testing 'latest' version to 10.3.

* [Testing] Correcting Travis device target.
2017-07-05 14:40:45 -04:00
Adrian Secord
508deb4262 Modified scripts/test_all to use latest simulator available. (#1559) 2017-06-29 13:33:23 -04:00
Will Larche
39f36adfb2 [Testing] Quieting the update of brew for less Travis log. (#1583) 2017-06-29 09:18:58 -04:00
Adrian Secord
f773f2ba69 [Scripts] Optionally use xcpretty in scripts/build_all. (#1571)
* WIP

* Add optional xcpretty to scripts/build_all.
2017-06-26 13:57:42 -04:00
Adrian Secord
08b29efb59 [Scripts] Updated scripts/build_all to take a verbose flag. (#1565)
* Updated scripts/build_all to take a verbose flag.

* Added --verbose flag to Travis CI build_all.
2017-06-23 16:45:31 -04:00
Scott Hyndman
4a011e75a5 [Docs] Docstravaganza (#1330)
* [Docs] Adds platform configuration for the doc site.

* [Docs] Adds path metadata for documentation site.

This field is used to determine where the file will appear in the
doc site.

* [Docs] Updates Material guideline links to latest URL.

material.google.com -> material.io/guidelines

* [Docs] Introduces a separate component index for the docsite.

* [Docs] Changes the directory used for site generation.

* [Docs] Moves documentation-site-only Markdown into its own directory.

* [Docs] Changes material.io links to use https.

* [Docs] Renames the howto and contributing docsite sections to docs.

* [Docs] Adds a navTitle field to the collection editing/styling pages.

* [Docs] Changes the FAQ heading to be one size bigger.

* [Docs] Changes the tutorial title.

* [Docs] Adds icons to three more components.

* [Docs] Introduces a root component directory called /catalog/.

* [Docs] Adds an icon to the AnimationTiming component.

* [Docs] Adds an icon for the typography component.

* [Docs] Reformats the docsite index.
2017-05-01 17:27:38 -04:00
Scott Hyndman
9ed1d4349d Gigantic documentation update. (#1305)
There are more changes to come, but it's time we merged back.

Changes:
* Re-introduces the doc site scripts and files that had been deleted previously.
* Updates contributing docs to reflect doc structure changes.
* Applies common header structure across all component documentation.
* Fixes a bunch of liquid syntax bugs.
* Inlines Front Matter metadata in README.md files as HTML comments. Any file prefixed with

  <!--docs:
  ...yaml
  -->

  Will be converted into Front Matter when generating the site.
* .jekyll_prefix files, which previously stored the data, have been removed.
2017-04-05 10:53:34 -04:00
Will Larche
8963d3eec1 [Scripts] Swift example check fix. (#1278) 2017-03-28 11:51:47 -04:00
Adrian Secord
8ffd18be47 [Testing] Remove interaction tests from Travis CI (#1190)
* Add ability to specify test to run on the command line.

* Run only unit tests.
2017-02-13 16:36:30 -05:00
Adrian Secord
ca8d8e5beb In scripts/prep_all, update the local CocoaPod cache of available pod versions for anything that the library, catalog, or demo apps use. (#1176) 2017-01-26 12:00:36 -05:00
Adrian Secord
7ff646b58a [Swiftlint] Moar swiftlint fixes (#1155)
* Quieted swiftlint down in scripts/format_all.

* BONUS clang-format for ObjC code.

* Fixed two stray ObjC warnings (not swiftlint related).

* Fixed remaning swiftlint warnings.

* Fixed typos in Shrine fixes.

* Swift cleanups, again.

This reverts commit 7489fca4e4741ae02b406cdaacaf1dae26e19837.
2017-01-25 17:23:20 -05:00
Adrian Secord
8bcb19781c More SwiftLint fixes for unit tests and example apps. (#1154)
* ClangFormat changes.

* Added swiftlint to scripts/format_all.`

* Fix scripts/lint_all to work from any directory.

* Fixed swiftlint invocation.

* Remove the checks for force casting (! operator).

* Some fixes.

* More Swift fixes.
2017-01-11 13:27:57 -05:00
Adrian Secord
f7294c3442 Changed clean script to force-clean Xcode projects. (#1144) 2017-01-10 11:10:26 -05:00
Adrian Secord
d0bfaa6f60 Tell brew install to stop failing if swiftlint is already installed. 2017-01-10 08:01:27 -05:00
Sam Symons
bb561ac257 [Scripts] SwiftLint integration (#1129)
* Integrate SwiftLint in the Catalog.

* Update the disabled SwiftLint rules.

* Reference a local swiftlint.yml symlink.

This prevents us from getting warnings about code style violations from the other demos.

* Fix SwiftLint violations in the Catalog and Components.

* Ignore the `third_party` directory when running the linter.

We should not have to deal with warnings in code we may not be able to fix easily.

* Integrate SwiftLint into Shrine.

Additionally, fix a number of warnings introduced.

* Run SwiftLint on Travis.

* Enable many of the previously disabled rules and correct them.

* Fix control statement violations from SwiftLint.
2017-01-06 16:37:23 -05:00
Adrian Secord
531244dcba Added script to install SwiftLint. (#1143) 2017-01-06 13:56:46 -05:00
Adrian Secord
f6f8480d4f Added comment about Travis CI's 10.1 device bug. (#1135) 2017-01-05 10:19:33 -05:00
Adrian Secord
4ed0f1ab20 Added a script to format Objective-C sources with clang-format. (#1132) 2017-01-05 10:19:08 -05:00
Adrian Secord
6b7be75f58 [Scripts] Add scripts for "prepping" and cleaning the library/catalog/demo apps. (#1130)
* Changed build_all to echo the xcodebuild command it is executing.

* Added a clean_all script.

* Added a prep_all script.

* Updated README.md with new scripts.

* Change Travis CI to use the new `prep_all` script.
2017-01-05 10:18:20 -05:00
Adrian Secord
5220eb3390 Enable test code coverage reports in Xcode and in Travis CI. (#1115) 2016-12-27 18:47:14 -05:00
ianegordon
82dc874d6d Enable Travis CI integration (#1095)
* Add file to kick off Travis

* Checking Travis CI's installed Xcode and simulator devices.

* Adding Cocoapods init to Travis CI config.

* Enabling building in Travis CI config.

* Added temporary dumping of the log file on error.

* Switched Shrine to manual signing.

* Dump Travis code signing options.

* Adding CocoaPods version to debug output.

* Remove code signing reporting from Travis CI config.

* Forcing `build_all` to skip code signing.

* Switching Shrine back to automatic provisioning style.

* Re-enabling testing in Travis CI.

* Bump up verbosity of testing.

* Changing test device from 10.2 to 10.1 to work around Travis CI bug.

* Remove the printing of available devices, Xcode will print them out on error.

* Added more context on failure for Travis CI builds only.

* Re-enable CI for our normal branches.

* Remove "do not merge" file.

* Removing our development team and switching Catalog to automatic profiles.

* Removing our development team and switching Bare to automatic profiles.

* Removing our development team and switching Pesto to automatic profiles.
2016-12-27 17:46:34 -05:00
Adrian Secord
a11d01a092 Made build/test scripts exit with failure if anything failed. (#1088) 2016-12-21 17:07:56 -05:00
Adrian Secord
db3c563ad3 Fixed mysterious CocoaPods header_mapping_dir issue that was blocking CocoaPods linting. 2016-12-15 17:05:40 -05:00
Adrian Secord
e8c45d5394 Removed old refs to API docs. (#1084)
* Removed old refs to API docs.

* Removed outdated refs to API docs.
2016-12-15 15:35:13 -05:00
Adrian Secord
8954c5d71b Remove unused leftover submodules. 2016-12-15 14:05:52 -05:00
Adrian Secord
d2c05179f6 Renamed master to stable in docs and scripts.
Closes #161.
2016-12-15 08:24:14 -05:00
Adrian Secord
11a973dea7 Removed unused scripts/release/next. 2016-12-15 08:13:39 -05:00
Adrian Secord
fa9d64a9b2 Update README.md 2016-12-14 14:59:57 -05:00