PileProject / drive

The drive project
Other
5 stars 4 forks source link

Added .travis.yml #37

Closed makotoshimazu closed 7 years ago

makotoshimazu commented 7 years ago

This patch enables the bot to test this repository automatically.

Issue #36

tiwanari commented 7 years ago

I'm tackling the cannot find symbol problem. In a local machine, the error does not occur with ./gradlew build connectedCheck but I met other error Could not launch activity after the building process causing cannot find symbol problem so I fixed it at first. Since the error also made me confused, let me a note for that.

The error has occurred in com.pileproject.drive.util.fragment.AlertDialogFragmentTest#testCheckComponent_titleString because it could't find com.pileproject.drive.util.fragment.TestActivity. But the Activity class was surely declared in androidTest/AndroidManifest.xml and should have been found in test.

Finally, I came across a discussion on StackOverFlow and we should prepare AndroidManifest in debug folder to follow the default build type while testing.

[UPDATE] As follow the instruction, I changed a sourceSets element from test to debug and this solved the Could not launch activity error.

makotoshimazu commented 7 years ago

44 covers this. closed.