Skip to content

Commit

Permalink
Merge pull request #84 from WasiqB/release
Browse files Browse the repository at this point in the history
Release v-3.0.0
  • Loading branch information
WasiqB authored Nov 16, 2018
2 parents 67a5023 + 9984bda commit 618b488
Show file tree
Hide file tree
Showing 102 changed files with 3,005 additions and 2,061 deletions.
135 changes: 98 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,111 @@
# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
default: &default
working_directory: ~/repo
docker:
- image: circleci/openjdk:8-jdk
- image: circleci/node:8.12.0
environment:
MAVEN_OPTS: -Xmx3200m
ANDROID_HOME: /usr/local/android-sdk-linux
version: 2
jobs:
build:
machine: true
working_directory: ~/code
code_checkout:
<<: *default
steps:
- run:
name: Install Docker Compose
command: |
curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
- setup_remote_docker
- run:
name: Start container and verify it's working
command: |
set -x
docker-compose up -d
docker run --network container:contacts \
appropriate/curl --retry 10 --retry-delay 1 --retry-connrefused http://localhost:8080/contacts/test
- run:
name: Launch emulator
command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel on
background: true
- checkout
- save_cache:
key: repo-{{ .Branch }}-{{ .Revision }}
paths:
- ~/repo
resolve_dependencies:
<<: *default
steps:
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
- v1-dependencies-
- repo-{{ .Branch }}-{{ .Revision }}
- run:
name: Resolve dependencies
command: mvn dependency:go-offline
name: Resolve Dependencies
command: mvn dependency:resolve
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
key: repo-dependency-{{ .Branch }}-{{ .Revision }}
build:
<<: *default
steps:
- restore_cache:
keys:
- repo-{{ .Branch }}-{{ .Revision }}
- repo-dependency-{{ .Branch }}-{{ .Revision }}
- run:
name: Wait for emulator
name: Build project
command: mvn clean install -DskipTests=true
- save_cache:
key: repo-target-{{ .Branch }}-{{ .Revision }}
paths:
- target/
test:
<<: *default
steps:
- restore_cache:
keys:
- repo-{{ .Branch }}-{{ .Revision }}
- repo-dependencies-{{ .Branch }}-{{ .Revision }}
- repo-target-{{ .Branch }}-{{ .Revision }}
- run:
name: Install supporting packages
command: |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
sudo apt-get install build-essential curl git m4 python-setuptools ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
- run:
name: Install Appium server
command: |
chmod +x ~/code/script/android-wait-for-boot.sh;
~/code/script/android-wait-for-boot.sh;
environment:
TERM: dumb
sudo npm update -g
sudo npm install -g appium
- run:
name: Run Tests with Sonar Coverage
command: mvn org.jacoco:jacoco-maven-plugin:prepare-agent install -Pcoverage-per-test
- save_cache:
key: repo-reports-{{ .Branch }}-{{ .Revision }}
paths:
- reports/
code_analysis:
<<: *default
steps:
- restore_cache:
keys:
- repo-{{ .Branch }}-{{ .Revision }}
- repo-dependencies-{{ .Branch }}-{{ .Revision }}
- repo-target-{{ .Branch }}-{{ .Revision }}
- repo-reports-{{ .Branch }}-{{ .Revision }}
- run:
name: Run UI Tests
command: mvn integration-test
name: Update Sonar Analysis
command: mvn package sonar:sonar -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_KEY -DskipTests=true

filters: &all_branches
branches:
only:
- develop
- master
- release
- /issue-.*/

workflows:
version: 2
normal_flow:
jobs:
- code_checkout:
filters: *all_branches
- resolve_dependencies:
filters: *all_branches
requires:
- code_checkout
- build:
filters: *all_branches
requires:
- resolve_dependencies
- code_analysis:
filters: *all_branches
requires:
- build
36 changes: 0 additions & 36 deletions .classpath

This file was deleted.

15 changes: 9 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/target/
/test-output/
/logs/
/settings/
/pubring.gpg
/secring.gpg
/trustdb.gpg
/trustdb.gpg.lock
/reports/
/logs/
/*.gpg
/*.gpg.lock
/.settings/
/.classpath
/.project
/bin/
/screenshots/
/reports/
/videos/
23 changes: 0 additions & 23 deletions .project

This file was deleted.

5 changes: 0 additions & 5 deletions .settings/org.eclipse.core.resources.prefs

This file was deleted.

Loading

0 comments on commit 618b488

Please sign in to comment.