Merge pull request #334 from realm/al-ci

CI test improvements
This commit is contained in:
Scott Kyle 2016-03-17 02:16:20 -07:00
commit 7260d7c71c
2 changed files with 10 additions and 9 deletions

View File

@ -47,9 +47,9 @@
"prepublish": "scripts/prepublish.sh"
},
"devDependencies": {
"babel-eslint": "^5.0.0",
"eslint": "^2.2.0",
"eslint-plugin-react": "^4.1.0",
"babel-eslint": "^6.0.0-beta.6",
"eslint": "^2.4.0",
"eslint-plugin-react": "^4.2.3",
"jsdoc": "^3.4.0",
"semver": "^5.1.0"
},

View File

@ -4,7 +4,7 @@ set -o pipefail
set -e
TARGET="$1"
CONFIGURATION="${2:-"Debug"}"
CONFIGURATION="${2:-"Release"}"
DESTINATION=
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
SRCROOT=$(cd "$(dirname "$0")/.." && pwd)
@ -77,9 +77,13 @@ fi
case "$TARGET" in
"eslint")
[[ $CONFIGURATION == 'Debug' ]] && exit 0
npm install
npm run lint .
;;
"jsdoc")
[[ $CONFIGURATION == 'Debug' ]] && exit 0
npm install
npm run jsdoc
;;
"realmjs")
@ -114,9 +118,7 @@ case "$TARGET" in
xcodebuild -scheme ReactExample -configuration "$CONFIGURATION" -sdk iphonesimulator $DESTINATION build test
;;
"react-tests-android")
if [[ $CONFIGURATION == 'Debug' ]]; then
exit 0
fi
[[ $CONFIGURATION == 'Debug' ]] && exit 0
pushd tests/react-test-app
@ -149,8 +151,7 @@ case "$TARGET" in
;;
"object-store")
pushd src/object-store
brew install cmake
cmake .
cmake -DCMAKE_BUILD_TYPE=$CONFIGURATION .
make run-tests
;;
*)