Commit Graph

6373 Commits

Author SHA1 Message Date
Ilya Goncharov 6ddc05a5a8 [Gradle, JS] Fix for wildcard npm dependency version
#KT-34460 fixed
2019-10-21 17:37:07 +03:00
Ilya Goncharov e17b9097df [Gradle, JS] Add test on success installation of duplicated dependencies 2019-10-21 17:29:47 +03:00
Ilya Goncharov bdd6186a07 [Gradle, JS] Resolve devDependencies and dependencies modules clash 2019-10-21 17:29:46 +03:00
Ilya Goncharov fa647680d3 [Gradle, JS] Update npm dependencies
- Karma - provide possibility to check exit code
- Webpack - bug fixes
- Mocha - bug fixes
2019-10-21 17:28:49 +03:00
Ilya Goncharov 2cf79b7502 Check Karma exit code with disabled failOnFailingTestSuite
https://github.com/karma-runner/karma/pull/3116
2019-10-21 17:28:49 +03:00
Jim Sproch 383239aff6 Make useIR available from Gradle KotlinJvmOptions 2019-10-21 13:20:54 +03:00
Ilya Matveev 3a234d46ed Gradle, native: Support watchOS and tvOS in CocoaPods plugin
Issue #KT-34329 fixed
2019-10-21 12:43:20 +03:00
Ilya Chernikov d97e497da0 Remove embeddable tests - they are causing conflicts...
between embeddable compiler contents and intellij sdk modules
To make it work, the dependencies to the intellij sdk should
be eliminated
2019-10-19 11:22:55 +03:00
Ilya Chernikov 08b77bc916 Implement tests to sam-with-receiver support in new scripting API
plus minor tests refactoring
2019-10-19 11:22:55 +03:00
Ilya Chernikov cf3bf5a9b9 [minor] Fix files and jars pattern matching on windows 2019-10-19 11:22:54 +03:00
Nikolay Krasko db913e519f Avoid using specific version because they may differ in different platforms 2019-10-17 11:19:13 +03:00
Ilya Gorbunov bbdbc2896b Workaround in FloatMathTest.powers to avoid failures with js-ir runtime
Include kotlin-stdlib-js-ir in local core libs build/test and
enable failing build on test failures.

Relates to: KT-24975
2019-10-16 17:48:47 +03:00
Alexander Udalov d0b241b681 Minor, fix typo in -include-runtime argument help
#KT-34240 Fixed
2019-10-16 15:00:03 +02:00
Ivan Gavrilovic 8f94a71de7 KT-33617: Handle non-hierarchical URIs for incremental annotation processing
JDK9 may decide to load .java files from jar when resolving a type, even
when .class file exists in the same jar. Further on, these files will be
parsed and analyzed, which triggers the listener used by incremental
annotation processing. This commit avoids analyzing those files, and
makes sure URI passed from the compiler are such that a File instance
can be created.

Test: KaptIncrementalWithIsolatingApt.testSourcesInCompileClasspathJars
2019-10-16 16:33:00 +09:00
Yan Zhulanow d31f234311 Pill: Add kotlin-scripting-js module to Pill 2019-10-15 22:06:45 +09:00
Ilya Goncharov cb31b42930 [Gradle, JS] Update npm versions 2019-10-14 11:20:36 +03:00
Ilya Goncharov 1b929cd93e [Gradle, JS] Add args instead of full override 2019-10-14 11:09:09 +03:00
Ilya Goncharov ee49c96650 [Gradle, JS] Set cli args for yarn install 2019-10-14 11:09:09 +03:00
Ivan Gavrilovic fbde7e47e9 KT-33503: Avoid analyzing module-info.class in KAPT classpath
When analyzing classpath changes for incremental KAPT, avoid
analyzing module-info.class files.

Test: ClasspathAnalyzerTest
2019-10-13 15:14:40 +09:00
Alexey Trilis b30537de0e Generate Kotlin/JS stdlib dependencies via dukat 2019-10-12 01:39:25 +02:00
Sergey Igushkin c13f55f0ad Cache PropertiesProvider, read the local.properties file lazily
Issue #KT-33980 Fixed
2019-10-11 21:32:20 +03:00
Sergey Igushkin d0604ffde8 Fix requiresVisibilityOf in the Gradle plugin (KT-34312)
* Fix adding new items (which was untested, as the logic was only tested
 by unit tests)

* Exclude the source set's dependsOn transitive closure from the
requiresVisibilityOf checks (i.e. these source sets are considered
visible)

* Fix minor issues in the `UnsatisfiedSourceSetVisibilityException`
message

* Add `requiresVisibilityOf` to integration tests

Issue #KT-34312 Fixed
2019-10-11 21:32:08 +03:00
Ilya Chernikov d51291b187 [minor] Fix file pattern matching test and converting paths to universal separator on calling the walking function 2019-10-11 17:43:48 +02:00
Ilya Matveev b7f9694f3a Fat frameworks: Run tests only on MacOS 2019-10-11 18:28:19 +03:00
Ilya Matveev 919c09d849 Fat frameworks: Support for watchOS and tvOS
Issue #KT-34259 fixed
2019-10-11 18:28:18 +03:00
Ilya Matveev 37e828d4aa Gradle, native: Disable watchOS x64
Currently a 64-bit simulator for watchOS is not available so
we disable this target.
2019-10-11 18:28:18 +03:00
Ilya Matveev 02504767aa Fat frameworks: Add tests 2019-10-11 18:28:18 +03:00
Ilya Matveev 57b111cbe8 Fat frameworks: Don't add simulators into CFBundleSupportedPlatforms
Issue #KT-32223 fixed
2019-10-11 18:28:18 +03:00
Ilya Goncharov d978f9671e [Gradle, JS] Not consider mocha default arguments
#KT-33747 fixed
2019-10-11 17:51:02 +03:00
Ilya Goncharov 1fad109fc1 [Gradle, JS] Deprecate useNodeJs for compatibility 2019-10-11 17:51:02 +03:00
Ilya Goncharov 5957bda40c [Gradle, JS] Remove redundant NodeJs runner 2019-10-11 17:51:02 +03:00
Ilya Goncharov 7cde993b43 [Gradle, JS] Detect adapter automatically, not depends on JasmineLike 2019-10-11 17:51:02 +03:00
Ilya Goncharov 55fb9be7f6 [Gradle, JS] Remove copypaste for karma and nodejs test adapters 2019-10-11 17:51:02 +03:00
Ilya Goncharov cb096db6be [Gradle, JS] useMocha by default 2019-10-11 17:51:02 +03:00
Ilya Goncharov 5c3c196f8e [Gradle, JS] Return result of testing function
- It is useful for async testing (Promise returning)
2019-10-11 17:51:02 +03:00
Ilya Goncharov 3b29112885 [Gradle, JS] Remove redundant related with JS test run 2019-10-11 17:51:02 +03:00
Ilya Goncharov 287351a4c2 [Gradle, JS] Only one sender of team city stdOut messages
- NodeJS and Browser tests should use one code to send TeamCity messages
2019-10-11 17:51:02 +03:00
Ilya Goncharov a4c761aa33 Use team city messages for mocha test output 2019-10-11 17:51:02 +03:00
Ilya Goncharov 07e4b1f3de Migrate filtering adapter on mocha's initial adapter 2019-10-11 17:51:02 +03:00
Ilya Matveev 9ab2b928bc Gradle, native: Add a DSL shortcut for iOS, watchsOS and tvOS
This patch adds a group of shortcut DSL methods allowing a user to
create simulator and device targets for Apple platforms along with
corresponding common source set(s) in one command. iOS, tvOS and
watchOS targets are supported.

Issue #KT-33856 fixed
2019-10-11 17:40:57 +03:00
Ilya Goncharov 18b287def5 Fix license information for js modules 2019-10-11 12:23:20 +03:00
Ilya Chernikov 9bf46cf435 Fix filename pattern building under Windows 2019-10-11 08:13:05 +02:00
Ilya Chernikov 8b750bfdc7 Add a property for resolving via classloader in JSR-223 2019-10-10 17:43:31 +02:00
Ilya Chernikov 54caf4bf16 Add resolving from classloader to REPL pipeline 2019-10-10 17:43:30 +02:00
Ilya Chernikov 2219b950f1 Implement resolve top-level functions and props from classloader
#KT-33892 fixed
2019-10-10 17:43:29 +02:00
Roman Artemev c0f279811e [JS SCRIPT] refactor js script infrastructure
- Implement proper script compiler proxy to correctly handle script and its closed-world dependencies
 - Clean up zoo of JsScriptCompilers
2019-10-10 12:52:06 +03:00
Vitaliy.Tikhonov c6c3d2de9e [JS SCRIPTING] create tests for repl 2019-10-10 12:52:06 +03:00
Vitaliy.Tikhonov 9b4d92cc07 [JS SCRIPTING] create evaluators for repl and scripting 2019-10-10 12:52:05 +03:00
Vitaliy.Tikhonov d79279d8a5 [JS SCRIPTING] create CoreCompiler for scripting 2019-10-10 12:52:05 +03:00
Ilya Goncharov bf0b4f6878 Commonization of condition for linking node packages 2019-10-10 11:58:18 +03:00