954 Commits

Author SHA1 Message Date
Marco Vermeulen
740efd0d4c Update version of production to 3.3.4 3.3.4 2016-03-21 23:19:52 +00:00
Marco Vermeulen
ddb7cdd24c Revert "Upgrade to mongo driver 3.2.2."
This reverts commit a309a21dc4.
2016-03-21 23:19:30 +00:00
Marco Vermeulen
a309a21dc4 Upgrade to mongo driver 3.2.2. 2016-03-21 00:26:16 +00:00
Marco Vermeulen
f082e18d4b Temporary remove InstallSpec to prevent failure. 2016-03-20 22:59:31 +00:00
Marco Vermeulen
731b28c7bd Revert "Clean up after merge."
This reverts commit 51c877d3ab.
2016-03-10 08:22:53 +00:00
Marco Vermeulen
51c877d3ab Clean up after merge. 2016-03-10 08:06:16 +00:00
Marco Vermeulen
5342846fe1 Merge pull request #411 from SamirTalwar/testing-in-docker
Improve the testing in Docker.
2016-03-10 07:29:39 +00:00
Samir Talwar
a45d54a3f4 If less is not present, just output directly.
Sometimes `less` isn't available—for example, in the `java:8` Docker
image. If it's not there and there's no `$PAGER` variable is set, it's
best to just output directly.

Unfortunately, I couldn't figure out a way to test this without renaming
`less` to something else and then renaming it back afterwards, which
seemed… dangerous, so I've left it untested. Ideas are definitely
welcome.
2016-03-05 17:21:12 +00:00
Samir Talwar
8909e1755a Set the ENTRYPOINT, rather than the CMD. for the Docker build.
This allows us to override the tasks passed to Gradle with our own. For
example, if we wanted to avoid cleaning:

    $ docker run --rm -it -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/gradle -x clean

As non-test tasks can now be passed to Gradle, I have changed the tag
of the image to something more general.
2016-03-05 16:32:43 +00:00
Samir Talwar
dde4665646 Documentation: Run the Docker tests with -it.
* `-i` will ensure that the build can be cancelled with *Ctrl+C*.
  * `-t` tells Docker to run as a TTY, so the test frameworks know to
    output colours.
2016-03-05 16:32:27 +00:00
Marco Vermeulen
87c62f3903 FEATURE #392 - Fix logic of alias configuration. 2016-02-05 09:29:15 +00:00
Marco Vermeulen
65a8dbf5be Remove recursive flag in removal of symlink. 2016-01-31 19:48:25 +00:00
Shannon
1e43d55b6b Fixes gh-284. Updated sdkman-use and sdkman-common scripts so that they will be compatible with windows using either cygwin or mingw. 2016-01-31 19:38:56 +00:00
Marco Vermeulen
e9170030db Converts candidate template endpoint into candidate details. 2016-01-31 19:34:52 +00:00
Marco Vermeulen
f4ab46a029 Revert "check for bin dir inside SDKMAN_DIR to check previous installation #282"
This reverts commit 6a5342accf.
2016-01-31 17:28:44 +00:00
Marco Vermeulen
7541a46280 Add status codes to validation endpoint. 2016-01-31 17:23:53 +00:00
Marco Vermeulen
1556abdca1 Add templateUrl endpoint to server. 2016-01-31 17:23:53 +00:00
Marco Vermeulen
baf52159f3 Merge pull request #402 from kdabir/patch-1
check for `bin` dir inside SDKMAN_DIR to check previous installation
2016-01-14 22:23:59 +00:00
Kunal Dabir
6a5342accf check for bin dir inside SDKMAN_DIR to check previous installation #282
If you have existing dotfiles setup, `~/.sdkman/etc/config` is already present (as a symlink).
2016-01-13 15:42:50 +05:30
Marco Vermeulen
d4ae86d65c Fix debug logging in selfupdate. 2016-01-11 10:08:55 +00:00
Marco Vermeulen
ea4e474d9a Tweak timeouts for polling conditions in InstallSpec. 2016-01-11 08:20:39 +00:00
Marco Vermeulen
7236d59172 Improve test directory structure using UUIDs. 2016-01-11 08:20:07 +00:00
Marco Vermeulen
e24a89adab Fix race condition in InstallSpec using PollingConditions. 2016-01-06 09:03:39 +00:00
Marco Vermeulen
e6d8a4694c Prevent multiple broadcast messages printed when no prior broadcast received. 2016-01-05 08:30:29 +00:00
Marco Vermeulen
a8abe6645b Subdivide common functions into helper function scripts. 2016-01-04 08:26:42 +00:00
Marco Vermeulen
a5f2b5987f Clean up path utility functions. 2016-01-04 08:18:11 +00:00
Marco Vermeulen
ea01dbec31 Clean up sdkman-init script and move functions to utils. 2016-01-04 08:14:41 +00:00
Marco Vermeulen
679e29f555 Remove unwanted curly braces throughout bash codebase. 2016-01-04 08:05:08 +00:00
Marco Vermeulen
f013b44481 Re-order functions by importance per source script. 2016-01-01 18:12:55 +00:00
Marco Vermeulen
1c7af11e52 Differentiate top level functions from private functions to avoid ambiguity. 2016-01-01 18:00:32 +00:00
Marco Vermeulen
402d812c53 Remove the need for global SDKMAN_CANDIDATE_IN_PATH variable. 2016-01-01 17:51:24 +00:00
Marco Vermeulen
73ebdb0bb5 Get rid of todo comments. 2016-01-01 17:44:08 +00:00
Marco Vermeulen
68d014063d Steps toward decreasing state leakage in __sdkman_determine_version function. 2016-01-01 17:31:58 +00:00
Marco Vermeulen
227da3a743 Split use and default scenarios into separate feature files. 2016-01-01 16:40:58 +00:00
Marco Vermeulen
f794b85b0f Change internal function names to be private by convention. 2016-01-01 16:13:39 +00:00
Marco Vermeulen
6b9efc3526 Introduce local variable scoping, remove global state. 2015-12-31 18:29:17 +00:00
Marco Vermeulen
983fb92b91 Disable candidate list when offline. 2015-12-30 00:42:58 +00:00
Marco Vermeulen
3a22cf241e Improve validation of offline qualifier paramater. 2015-12-30 00:27:33 +00:00
Marco Vermeulen
87128b2dd0 ISSUE #397 - Simplify all aspects of offline mode. 2015-12-30 00:17:14 +00:00
Marco Vermeulen
878b1e5560 Clean up sdkman_determine_version function signature and extract local variable. 2015-12-29 12:46:44 +00:00
Marco Vermeulen
2b86ce8d85 Revert "Increase curl timeouts for initial contact."
This reverts commit 5cbd1bda5a.
2015-12-29 11:05:31 +00:00
Marco Vermeulen
3a9c0f5949 Rework wording of offline warning. 2015-12-29 00:04:15 +00:00
Marco Vermeulen
cab846f09f Drop online broadcast, rewords internet not reachable broadcast. 2015-12-28 23:49:44 +00:00
Marco Vermeulen
dbf8312972 Clean up bash code. 2015-12-28 23:48:14 +00:00
Marco Vermeulen
5cbd1bda5a Increase curl timeouts for initial contact. 2015-12-28 23:45:19 +00:00
Marco Vermeulen
6323fc5dea Add cleanup hook to InstallSpec. 2015-12-28 14:52:30 +00:00
Marco Vermeulen
b4ea5e684c Remove obsolete mongodb js resources. 2015-12-28 14:37:00 +00:00
Marco Vermeulen
8ee7bf84bd Move Cukes into groovy test folder structure. 2015-12-28 14:35:54 +00:00
Marco Vermeulen
9876ad5ad9 Renames SdkManBashEnvBuilder to SdkmanBashEnvBuilder. 2015-12-28 11:38:39 +00:00
Marco Vermeulen
a0d0bd46f8 Centralise creation of SdkManBashEnvBuilder in SdkmanEnvSpecification. 2015-12-28 11:36:08 +00:00