Permalink
Browse files

adds Android api 18 to new ci

  • Loading branch information...
1 parent 8f64a0f commit 82a370dc873f119f88fef0d889c9db6237bcc40b @sebv sebv committed Feb 14, 2015
View
@@ -1,7 +1,7 @@
{
"excludeFiles": ["submodules/**", "node_modules/**",
"./lib/server/static/**", "./lib/devices/firefoxos/atoms/*.js",
- "./sample-code/**"],
+ "./sample-code/**", "/Users/baba/Work/appium/ci/standalone-tools/node_modules/**"],
"requireCurlyBraces": ["for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch",
"return", "try", "catch", "function"],
View
@@ -2,4 +2,4 @@ submodules
node_modules
lib/server/static
lib/devices/firefoxos/atoms
-
+/Users/baba/Work/appium/ci/standalone-tools/node_modules
View
@@ -1,52 +0,0 @@
-language: node_js
-node_js:
- - '0.10'
-sudo: false
-notifications:
- email: true
- slack:
- secure: E1at9Fi4d2eLagKInwGOfvvcSr8rrVti+N3HzvlcL9UcYavwzfAstMX/nXoHTl8LR5/Dh4Sdja2+NeJp2uVNwlK7aVKk5egQ8q6qAEmcXlWgjqyyTusB1lgiaOQnbOuqsntg/3X5sP8nz5+V3sggelPnOrVwNCCkVXXSff2SHhE=
-rvm:
-- 2.1.1
-branches:
- only:
- - master
- - "/with\\-ci$/"
-git:
- submodules: false
-env:
- global:
- - SAUCE_REST_ROOT=https://saucelabs.com/rest/v1
- - APPIUM_HOST=ondemand.saucelabs.com
- - APPIUM_PORT=80
- - SAUCE_USERNAME=appium
- - IOS_CONCURRENCY=30
- - ANDROID_CONCURRENCY=30
- - SELENDROID_CONCURRENCY=10
- - GAPPIUM_CONCURRENCY=10
- - secure: GXGFbQptLEsKlaWnpOL2EB9hqQ4XBT6tqg7REt5j1h1jYBsfHQHSgSLt1jpzOF5kooXVbw2K7IrZyNVBXEUHR00Hp6O72FBOd+SSj8uPCJBLjAOaJWs0ZtujqGHwHpe6gadFfn0L7q0ffoV5OJVeNHHcuw4f9BaA78fTFNfm1jE=
- - HTTP_RETRIES=5
- - HTTP_RETRY_DELAY=5000
- - DEBUG_CONNECTION=1
- - MOCHA_INIT_TIMEOUT=600000
- - LAUNCH_TIMEOUT='{"global":90000,"afterSimLaunch":30000}'
- matrix:
- - CI_CONFIG=unit
- # - CI_CONFIG=android
- # - CI_CONFIG=ios
- # - CI_CONFIG=gappium
- # - CI_CONFIG=selendroid
-before_script:
-# - gem install --no-rdoc --no-ri appium_doc_lint
-#- "./ci/installers/install-node.sh"
-- 'echo Node.js version: `node -v`'
-- npm install -g jshint grunt-cli mocha
-- npm install
-#- "./ci/installers/install-sauce-connect.sh"
-#- "./ci/before-script-extra.sh"
-#- "ulimit -n 8000"
-# disabling sauce-connect until travis ichef issue is sorted
-# - "./ci/start-sauce-connect.sh"
-script:
-- "./ci/script.sh"
-- bash -c 'while true; do ping ondemand.saucelabs.com &> /dev/null; sleep 10; done' &
View
@@ -1,11 +0,0 @@
-export JAVA_HOME=$(/usr/libexec/java_home)
-
-if [ -f $HOME/tools/ant/env ]; then
- source $HOME/tools/ant/env
-fi
-if [ -f $HOME/tools/maven/env ]; then
- source $HOME/tools/maven/env
-fi
-if [ -f $HOME/tools/android/env ]; then
- source $HOME/tools/android/env
-fi
View
@@ -1,19 +1,19 @@
#!/bin/bash
set -e
-if [[ "${TARBALL}" == '' ]]; then
- echo Please set the TARBALL env variable!
+if [[ "${TARGET}" == '' ]]; then
+ echo Please set the TARGET env variable!
exit 1
fi
-TARGET=/tmp/${TARBALL}
-
echo "Starting to archive appium build into ${TARGET}."
tar \
- cfj ${TARGET} \
- -L \
+ cfjp ${TARGET} \
+ -h \
--exclude=.git \
+ --exclude=artefacts \
+ --exclude=node_modules \
--exclude=submodules .
echo "Finished to archive appium build."
@@ -1,32 +0,0 @@
-#!/bin/bash
-set -e
-
-if [[ $CI_CONFIG == 'ios' ]]; then
- ./ci/installers/install-ant.sh
- ./ci/installers/install-maven.sh
- sudo grunt authorize
-elif [[ $CI_CONFIG == 'android' ]]; then
- ./ci/installers/install-ant.sh
- ./ci/installers/install-maven.sh
- ./ci/installers/install-android.sh --api-19
- sudo grunt authorize
-elif [[ $CI_CONFIG == 'gappium' ]]; then
- if [[ $TRAVIS_PULL_REQUEST != false ]]; then
- # Skipping this config for pull requests, it takes too long.
- exit 0
- fi
- ./ci/installers/install-ant.sh
- ./ci/installers/install-maven.sh
- ./ci/installers/install-android.sh --api-19 --api-18 --api-16
- npm install -g cordova
- sudo grunt authorize
-elif [[ $CI_CONFIG == 'selendroid' ]]; then
- if [[ $TRAVIS_PULL_REQUEST != false ]]; then
- # Skipping this config for pull requests, it takes too long.
- exit 0
- fi
- ./ci/installers/install-ant.sh
- ./ci/installers/install-maven.sh
- ./ci/installers/install-android.sh --api-19 --api-16
- sudo grunt authorize
-fi
View
@@ -1,8 +0,0 @@
-#!/bin/bash
-set -e
-
-TARBALL=appium-${DEVICE_TYPE}-${BUILD_NUMBER}-${GIT_COMMIT:0:10}.tar.bz2
-
-echo "TARBALL=${TARBALL}" >> ./ci/build-env.properties
-
-cat ./ci/build-env.properties
@@ -1,10 +0,0 @@
-- SAUCE_USERNAME=appium
-- SAUCE_REST_ROOT=https://saucelabs.com/rest/v1
-- APPIUM_HOST=ondemand.saucelabs.com
-- APPIUM_PORT=80
-- IOS_CONCURRENCY=30
-- ANDROID_CONCURRENCY=30
-- SELENDROID_CONCURRENCY=10
-- GAPPIUM_CONCURRENCY=10
-# below is SAUCE_ACCESS_KEY encrypted
-- secure: GXGFbQptLEsKlaWnpOL2EB9hqQ4XBT6tqg7REt5j1h1jYBsfHQHSgSLt1jpzOF5kooXVbw2K7IrZyNVBXEUHR00Hp6O72FBOd+SSj8uPCJBLjAOaJWs0ZtujqGHwHpe6gadFfn0L7q0ffoV5OJVeNHHcuw4f9BaA78fTFNfm1jE=
View
@@ -1,13 +0,0 @@
-export SAUCE_REST_ROOT=https://saucelabs.com/rest/v1
-export APPIUM_HOST=ondemand.saucelabs.com
-export APPIUM_PORT=80
-
-export IOS_CONCURRENCY=10
-export ANDROID_CONCURRENCY=10
-export SELENDROID_CONCURRENCY=5
-export GAPPIUM_CONCURRENCY=5
-export HTTP_RETRIES=2
-export HTTP_RETRY_DELAY=20000
-export DEBUG_CONNECTION=1
-export MOCHA_INIT_TIMEOUT=300000
-export LAUNCH_TIMEOUT='{"global":60000,"afterSimLaunch":30000}'
@@ -1,6 +0,0 @@
-# Needs to be sourced!
-
-set -e
-
-curl -s -o use-node https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/node/use-node
-NODE_VERSION=0.10.26 . ./use-node
@@ -1,30 +0,0 @@
-#!/bin/bash
-set -e
-androids=','
-
-while test $# != 0
-do
- case "$1" in
- "--api-19") androids+='android-19,';;
- "--api-18") androids+='android-18,';;
- "--api-16") androids+='android-16,';;
- esac
-
- if [[ -n "$2" ]] && [[ "$2" != --* ]]; then
- shift
- shift
- else
- shift
- fi
-done
-
-COMPONENTS=build-tools-19.0.3${androids}extra-android-support
-
-mkdir -p $HOME/tools/android
-
-( curl -L https://raw.github.com/appium/android-sdk-installer/master/android-sdk-installer | \
-bash /dev/stdin --dir=$HOME/tools/android --install=$COMPONENTS ) &&\
-source $HOME/tools/android/env
-
-# to configure the emulator, add sysimg-18 to COMPONENTS and uncomment the line belor
-# echo no | android create avd --force -n test -t android-18 --abi armeabi-v7a
@@ -1,8 +0,0 @@
-#!/bin/bash
-set -e
-
-mkdir -p $HOME/tools/ant
-cd $HOME/tools/ant
-wget -P /tmp http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz
-tar xzf /tmp/apache-ant-1.9.4-bin.tar.gz
-echo 'export PATH=$HOME/tools/ant/apache-ant-1.9.4/bin:$PATH' > $HOME/tools/ant/env
@@ -1,8 +0,0 @@
-#!/bin/bash
-set -e
-
-mkdir -p $HOME/tools/maven
-cd $HOME/tools/maven
-wget -P /tmp http://www.us.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
-tar xzf /tmp/apache-maven-3.1.1-bin.tar.gz
-echo 'export PATH=$HOME/tools/maven/apache-maven-3.1.1/bin:$PATH' > $HOME/tools/maven/env
@@ -1,6 +0,0 @@
-#!/bin/bash
-set -e
-git clone https://github.com/visionmedia/n.git /tmp/n
-cd /tmp/n
-make install
-n stable
@@ -1,8 +0,0 @@
-#!/bin/bash
-set -e
-
-mkdir -p $HOME/tools/sc
-cd $HOME/tools/sc
-wget -P /tmp https://saucelabs.com/downloads/sc-4.3-osx.zip
-unzip /tmp/sc-4.3-osx.zip -d $HOME/tools/sc
-echo 'export PATH=$HOME/tools/sc/sc-4.3-osx/bin:$PATH' > $HOME/tools/sc/env
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-SAUCE=1 \
-VERBOSE=1 \
-TARBALL="${TARBALL}" \
-DEVICE="android" \
-VERSION="4.3" \
-./node_modules/.bin/mocha \
--g "@skip-ci|@skip-android-all|@android-arm-only" -i \
-"$@"
View
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-SAUCE=1 \
-VERBOSE=1 \
-TARBALL="${TARBALL}" \
-DEVICE="ios71" \
-VERSION="7.1" \
-./node_modules/.bin/mocha \
--g "@skip-ci|@skip-ios71|@skip-ios7|@skip-ios-all" -i \
-"$@"
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-SAUCE=1 \
-VERBOSE=1 \
-TARBALL="${TARBALL}" \
-DEVICE="selendroid" \
-./node_modules/.bin/mocha \
--g "@skip-ci|@skip-selendroid-all" -i \
-"$@"
View
@@ -1,102 +0,0 @@
-#!/bin/bash
-set -e
-
-source ./ci/env.sh
-
-function check_tarball {
- if [[ "${TARBALL}" == '' ]]; then
- echo Please set the TARBALL env variable!
- exit 1
- fi
-}
-
-function show_functional_test_info {
- echo "APPIUM_BUILD_NUMBER --> ${APPIUM_BUILD_NUMBER}"
- echo "APPIUM_JOB_NUMBER --> ${APPIUM_JOB_NUMBER}"
- echo "TARBALL --> ${TARBALL}"
-}
-
-if [[ $CI_CONFIG == 'unit' ]]; then
- #npm install -g jshint grunt-cli
- #npm install
- # cd docs
- # appium_doc_lint || exit 1
- # cd -
- npm test
-elif [[ $CI_CONFIG == 'build-ios' ]]; then
- check_tarball
- unset SUDO_UID
- echo OS X version: `sw_vers -productVersion`
- echo Xcode version: `xcodebuild build -version`
- echo Xcode path: `xcode-select --print-path`
- ./reset.sh --no-npmlink --dev --ios
-
- if [[ $UPLOAD_TO_SAUCE == 1 ]]; then
- TARBALL=$TARBALL ./ci/archive-build.sh
- # TARBALL=$TARBALL ./ci/upload_build_to_sauce.sh
- fi
-elif [[ $CI_CONFIG == 'ios-functional-tests' ]]; then
- check_tarball
- show_functional_test_info
- npm install
- TARBALL=sauce-storage:$TARBALL \
- ./ci/tools/parallel-mocha.js \
- -p $IOS_CONCURRENCY \
- -c ios
-elif [[ $CI_CONFIG == 'build-android' ]]; then
- check_tarball
- echo JAVA_HOME: $JAVA_HOME
- ./reset.sh --no-npmlink --dev --android
- if [[ $UPLOAD_TO_SAUCE == 1 ]]; then
- TARBALL=$TARBALL ./ci/archive-build.sh
- # TARBALL=$TARBALL ./ci/upload_build_to_sauce.sh
- fi
-elif [[ $CI_CONFIG == 'android-functional-tests' ]]; then
- check_tarball
- show_functional_test_info
- npm install
- TARBALL=sauce-storage:$TARBALL \
- ./ci/tools/parallel-mocha.js \
- -p $ANDROID_CONCURRENCY \
- -c android
-elif [[ $CI_CONFIG == 'gappium' ]]; then
- check_tarball
- if [[ $TRAVIS_PULL_REQUEST != false ]]; then
- echo "Skipping this config for pull requests, it takes too long."
- exit 0
- fi
- # source ./ci/android_env
- echo OS X version: `sw_vers -productVersion`
- echo Xcode version: `xcodebuild build -version`
- echo Xcode path: `xcode-select --print-path`
- echo JAVA_HOME: $JAVA_HOME
- ./reset.sh --ios --android --selendroid-quick --no-npmlink
- ./reset.sh --dev --gappium --no-npmlink
- # if [[ $UPLOAD_TO_SAUCE == 1 ]]; then
- # TARBALL=$TARBALL ./ci/upload_build_to_sauce.sh
- # TARBALL=sauce-storage:$TARBALL \
- # ./ci/tools/parallel-mocha.js \
- # -p $GAPPIUM_CONCURRENCY \
- # -c gappium
- # fi
-elif [[ $CI_CONFIG == 'selendroid' ]]; then
- check_tarball
- if [[ $TRAVIS_PULL_REQUEST != false ]]; then
- echo "Skipping this config for pull requests, it takes too long."
- exit 0
- fi
- # source ./ci/android_env
- echo OS X version: `sw_vers -productVersion`
- echo Xcode version: `xcodebuild build -version`
- echo Xcode path: `xcode-select --print-path`
- echo JAVA_HOME: $JAVA_HOME
- ./reset.sh --android --no-npmlink
- ./reset.sh --dev --selendroid-quick --no-npmlink
- # if [[ $UPLOAD_TO_SAUCE == 1 ]]; then
- # TARBALL=$TARBALL ./ci/upload_build_to_sauce.sh
- # TARBALL=sauce-storage:$TARBALL \
- # ./ci/tools/parallel-mocha.js \
- # -p $SELENDROID_CONCURRENCY \
- # -c selendroid
- # fi
-fi
Oops, something went wrong.

0 comments on commit 82a370d

Please sign in to comment.