Comments (5)
Hi @thaole-NRS I'm looking into this issue right now.
from android-orb.
Hi @thaole-NRS the orb seems to be working as intended, this is evident from it erroring out with environment: line 8: mvn: command not found
. It seems that the issue comes from sourcing /etc/environment
which is not advised as it can have unintended consequences such as this. I am closing this issue with this response, but if you need any further help or explanation you are more than welcome to reopen this issue.
from android-orb.
@ryanbourdais You're correct, it is functioning as intended. I refrain from utilizing the 'source /etc/environment' command. Prior to executing the 'test-command,' I aim to establish an environment variable named TESTFILES, which should obtain its value from a file called 'testfiles.txt.' Could you assist me in determining the appropriate command for the 'pre-test-command' phase?
from android-orb.
If the value of the environment variable needs to be set dynamically we typically would create local variables like this using shell commands
- run: echo 'export STR="string"' >> "$BASH_ENV"
- run: echo ${STR}
this would set create the local environment variable STR
which is accessible in a later step.
In the event that the value is known and fairly static you can use an environment variable
from android-orb.
- run:
name: Run E2E Mobile Tests
command: |
echo "export TESTFILES=$(circleci tests glob "features_iOS/*.feature" | circleci tests split --split-by=filesize | xargs)" >> "$BASH_ENV"
echo ${TESTFILES}
[ -n "$TESTFILES" ] || exit 1
- run:
name: "What was my custom environment variable?"
command: echo ${TESTFILES}
- android/run-tests:
max-tries: 1
pre-test-command: echo ${TESTFILES}
@ryanbourdais The run
command with "What was my custom environment variable?" returns with the expected value. But the pre-test-command
returns with ${TESTFILES}
which means it doesn't know TESTFILES
env, did I miss anything here?
from android-orb.
Related Issues (20)
- ANDROID_NDK_HOME not correct
- Save-grade-cache command fails when /tmp/gradle_cache_seed file does not exists. HOT 4
- `find` Error when using restore-gradle-cache command from v2.1.1
- Restore Gradle Cache Test HOT 6
- `wait-for-emulator` hangs on Android API Level 31 HOT 4
- How can attach screenshots of ui test executions with android/start-emulator-and-run-tests command? HOT 8
- Add adb pull destination folder HOT 1
- Passing environment variables to `start-emulator-and-run-tests` arguments causes job to fail as of 2.1.1 HOT 5
- How to run "adb shell settings put secure long_press_timeout 2000" before execution of test HOT 3
- fastlane-deploy command does not exist HOT 4
- Trying to create AVD in the background results in failure HOT 2
- Options "no-output-timeout" not being used by run-tests command HOT 1
- android/create-google-play-key does not print contents of the environment variable to JSON file HOT 1
- Java 17 is not being set to the environment HOT 3
- Using newer version of Android SDK causes emulator booting for too long HOT 6
- Android Gradle plugin requires Java 17 to run. You are currently using Java 11. HOT 2
- cgroup changed for latest orb version? HOT 3
- Latest Orb Does Not Work HOT 1
- Job rejected because resource class doesn't exist for android-machine with latest orb version HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-orb.