fastlane-plugin-mango 1.3.24 → 1.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -11
- data/lib/fastlane/plugin/mango/helper/docker_commander.rb +4 -0
- data/lib/fastlane/plugin/mango/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e38a84cceed91c04a4ce62698766017ee521d3721d885276087b8b47ec57de73
|
|
4
|
+
data.tar.gz: 9e8569619ff82aa951602614b7aae19a1a1247af2ab5b87ba2ba3fb665130132
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4721cdac4969cdfd8dd7f86143b07edc87ce0853b868ba68d0c3c509f23265300832ff77e6acb3f761c78d8c86c11944768de059c092927cec3f856d95213ae
|
|
7
|
+
data.tar.gz: 4a677f075b53365135d3a498e4393cc37cef755e27dd18cba8299fe602d571562b29c7955c6d3e5dce709cbec54e604615d3e8afee4bb747921c6e89ca5524a9
|
data/README.md
CHANGED
|
@@ -47,19 +47,26 @@ desc "Run espresso tests on docker images"
|
|
|
47
47
|
end
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
or to this for unit tests or other gradle tasks:
|
|
50
|
+
or to this for unit tests or other gradle tasks(some of the variables are optional):
|
|
51
51
|
```ruby
|
|
52
52
|
desc "Run unit tests on docker images"
|
|
53
|
-
lane :
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
lane :example do
|
|
54
|
+
run_dockerized_task(
|
|
55
|
+
container_name: "emulator_#{options[:port_factor]}",
|
|
56
|
+
port_factor: options[:port_factor],
|
|
57
|
+
docker_image: 'joesss/mango-base:latest',
|
|
58
|
+
android_task: './gradlew testDebug',
|
|
59
|
+
post_actions: 'adb logcat -d > logcat.txt',
|
|
60
|
+
bundle_install: true,
|
|
61
|
+
core_amount: '8',
|
|
62
|
+
workspace_dir: '/root/tests/espresso-tests',
|
|
63
|
+
docker_registry_login: "docker login -u='USER' -p='PASS' some.docker.com",
|
|
64
|
+
pull_latest_image: true,
|
|
65
|
+
pre_action: 'echo $GIT_BRANCH > /root/.branch',
|
|
66
|
+
vnc_enabled: false,
|
|
67
|
+
environment_variables: options[:environment_variables] ? options[:environment_variables].split(' ') : ''
|
|
68
|
+
)
|
|
69
|
+
end
|
|
63
70
|
```
|
|
64
71
|
|
|
65
72
|
Now you can call this new lane by calling `bundle exec fastlane Espresso_Tests`.
|
|
@@ -43,6 +43,10 @@ module Fastlane
|
|
|
43
43
|
|
|
44
44
|
def delete_container
|
|
45
45
|
Actions.sh("docker rm -f #{container_name}") if container_name
|
|
46
|
+
rescue StandardError
|
|
47
|
+
sleep 5
|
|
48
|
+
UI.important("Was not able to delete the container after the first attempt, trying again")
|
|
49
|
+
retry
|
|
46
50
|
end
|
|
47
51
|
|
|
48
52
|
def disconnect_network_bridge
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-mango
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.25
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Serghei Moret, Daniel Hartwich
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: docker-api
|