Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (3)
(feat) update readme
· 7741d10d
Martin Santangelo
authored
Nov 15, 2019
7741d10d
(chore) remove old e2e from CI
· 47127ac3
Martin Santangelo
authored
Nov 15, 2019
47127ac3
(feat) add detox to CI
· abcc86fe
Martin Santangelo
authored
Nov 15, 2019
abcc86fe
Hide whitespace changes
Inline
Side-by-side
.circleci/config.yml
View file @
abcc86fe
...
...
@@ -107,6 +107,18 @@ jobs:
paths
:
-
ios/Pods
# Run e2e
-
run
:
name
:
Load dependencies
command
:
|
brew update
brew tap wix/brew
brew install --HEAD applesimutils
yarn global add detox-cli
-
run
:
detox build -c ios.sim.release
-
run
:
detox test -c ios.sim.release
### TODO- get tests running with fastlane
...
...
.gitlab-ci.yml
View file @
abcc86fe
...
...
@@ -36,29 +36,6 @@ build:android:
expire_in
:
7 days
when
:
on_success
e2e:browserstacks
:
image
:
node:10.16.3
stage
:
e2e
cache
:
key
:
${CI_COMMIT_REF_SLUG}
paths
:
-
node_modules/
script
:
-
yarn install
-
export bsAPP=`curl -u "${bsUSER}:${bsKEY}" -X POST "https://api-cloud.browserstack.com/app-automate/upload" -F "file=@./Minds-$CI_BUILD_REF_SLUG.apk"| grep -o 'bs\:\/\/.*"' | sed 's/.$//'`
-
yarn e2e
tags
:
-
docker
dependencies
:
-
build:android
only
:
refs
:
-
/^stable-*/
-
/^release-*/
-
/^feat-*/
-
/^test-*/
allow_failure
:
true
deploy:s3
:
image
:
minds/ci:latest
stage
:
deploy
...
...
README.md
View file @
abcc86fe
...
...
@@ -37,5 +37,18 @@
- `
yarn test
`
## Testing e2e (macOS)
Install the detox cli
- `
brew tap wix/brew
`
- `
brew install applesimutils
`
- `
yarn global add detox-cli
`
Run the tests
- `
detox build -c ios.sim.debug
`
- `
detox test -c ios.sim.debug
`
You can use -c ios.sim.release for e2e test a production build
### _Copyright Minds 2018_
package.json
View file @
abcc86fe
...
...
@@ -105,12 +105,20 @@
"detox"
:
{
"configurations"
:
{
"ios.sim.debug"
:
{
"binaryPath"
:
"ios/build/
Minds/
Build/Products/Debug-iphonesimulator/Minds.app"
,
"binaryPath"
:
"ios/build/Build/Products/Debug-iphonesimulator/Minds.app"
,
"build"
:
"xcodebuild -workspace ios/Minds.xcworkspace -scheme Minds -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build"
,
"type"
:
"ios.simulator"
,
"device"
:
{
"type"
:
"iPhone X"
}
},
"ios.sim.release"
:
{
"binaryPath"
:
"ios/build/Build/Products/Release-iphonesimulator/Minds.app"
,
"build"
:
"xcodebuild -workspace ios/Minds.xcworkspace -scheme Minds -configuration Release -sdk iphonesimulator -derivedDataPath ios/build"
,
"type"
:
"ios.simulator"
,
"device"
:
{
"type"
:
"iPhone X"
}
}
},
"test-runner"
:
"jest"
...
...