View .gitlab-ci.yml
cache: | |
key: | |
stages: | |
- build | |
- test | |
- deploy | |
after_script: | |
- (if [ "$(lsof -n -i4TCP:2137)" != "" ]; then kill -9 $(lsof -n -i4TCP:2137); else echo "Cleaned"; exit 33; fi); |
View package.json
"detox": { | |
"configurations": { | |
"ios.sim.debug": { | |
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/PolideaSample.app", | |
"build": "xcodebuild -project ios/PolideaSample.xcodeproj -scheme PolideaSample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build", | |
"type": "ios.simulator", | |
"name": "iPhone 6s Plus" | |
}, | |
"android.emu.debug": { | |
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk", |
View firstTest.spec.js
describe('Example', () => { | |
beforeEach(async () => { | |
await device.reloadReactNative(); | |
await waitFor(element(by.id('ButtonText'))).toBeVisible().withTimeout(10000); | |
}); | |
it('should Press me text be displayed', async () => { | |
await waitFor(element(by.text("Press Me"))).toBeVisible().withTimeout(100); | |
}); |