Skip to content

Commit

Permalink
Removed circleci screenshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Dec 8, 2017
1 parent 82e9a85 commit b6f61ea
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package de.timonback.android.whatisthatplace.activity;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import de.timonback.android.whatisthatplace.R;


public class VisionFragment extends Fragment {
private final static String LOG_NAME = VisionFragment.class.getName();


public VisionFragment() {
}

/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment VisionFragment.
*/
// TODO: Rename and change types and number of parameters
public static VisionFragment newInstance(String param1, String param2) {
VisionFragment fragment = new VisionFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_vision, container, false);
}
}
30 changes: 30 additions & 0 deletions app/src/main/res/layout/fragment_vision.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<LinearLayout
xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:tools="http:https://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="de.timonback.android.whatisthatplace.activity.VisionFragment">

<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher" />
</FrameLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Te
</LinearLayout>
</LinearLayout>

</LinearLayout>
10 changes: 0 additions & 10 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ jobs:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Install screenshot gradle lib
command: |
mkdir ~/gradle-screenshot-lib
git clone https://github.com/facebook/screenshot-tests-for-android ~/gradle-screenshot-lib
cd ~/gradle-screenshot-lib
~/gradle-screenshot-lib/gradlew installAll
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
Expand All @@ -44,9 +37,6 @@ jobs:
- run:
name: Run emulator tests
command: ./gradlew connectedAndroidTest
- run:
name: Take screenshots
command: ./gradlew screenshotTests
- run:
name: Build apk
command: ./gradlew assembleRelease
Expand Down

0 comments on commit b6f61ea

Please sign in to comment.