Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
250
Merge Requests
14
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
673585bcbd36ed3a7a684f4e9c1233c204758c40...abcc86fe0df7d6b12c5045923ec6af5662f153d1
Source
abcc86fe0df7d6b12c5045923ec6af5662f153d1
...
Target
673585bcbd36ed3a7a684f4e9c1233c204758c40
Compare
Commits (3)
(feat) update readme
· 7741d10d
Martin Santangelo
authored
4 hours ago
7741d10d
(chore) remove old e2e from CI
· 47127ac3
Martin Santangelo
authored
2 hours ago
47127ac3
(feat) add detox to CI
· abcc86fe
Martin Santangelo
authored
11 minutes ago
abcc86fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
24 deletions
+34
-24
.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
...
...
This diff is collapsed.
.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
...
...
This diff is collapsed.
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_
This diff is collapsed.
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"
...
...
This diff is collapsed.