forked from ibm-functions/runtime-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·32 lines (22 loc) · 735 Bytes
/
Copy pathtest.sh
File metadata and controls
executable file
·32 lines (22 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -ex
# Build script for Travis-CI.
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
ROOTDIR="$SCRIPTDIR/../.."
WHISKDIR="$ROOTDIR/../openwhisk"
export OPENWHISK_HOME=$WHISKDIR
#Deployment
WHISK_CLI="${WHISKDIR}/bin/wsk -i"
# Run a simple action using the kind
${WHISK_CLI} action update echoPython ${ROOTDIR}/tests/dat/echo.py --kind "python-jessie:3"
${WHISK_CLI} action invoke echoPython -b
export OPENWHISK_HOME=$WHISKDIR
cd ${ROOTDIR}
TERM=dumb ./gradlew :tests:checkScalafmtAll
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
TERM=dumb ./gradlew :tests:test
else
TERM=dumb ./gradlew :tests:testWithoutCredentials
fi
#For some reason there no activations, maybe index not ready
#${WHISK_CLI} activation get --last