Skip to content

Commit 6e43689

Browse files
rabbahdgrove-oss
authored andcommitted
Remove unnecessary Travis setup. (#53)
* Travis cleanup * Tag master build as 'latest'.
1 parent 5132350 commit 6e43689

7 files changed

Lines changed: 8 additions & 152 deletions

File tree

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ before_install:
2020
- "./tools/travis/setup.sh"
2121
install: true
2222
script:
23-
- "./tools/travis/build.sh && ./tools/travis/build_sdk.sh && ./tools/travis/deploy.sh
24-
&& ./tools/travis/test.sh"
23+
- "./tools/travis/build.sh && ./tools/travis/build_sdk.sh && ./tools/travis/test.sh"
2524
before_deploy:
2625
- "./tools/travis/rename_sdk.sh ${TRAVIS_TAG%@*} ${TRAVIS_TAG##*@}"
2726
deploy:
@@ -33,7 +32,7 @@ deploy:
3332
condition: "${TRAVIS_TAG%@*} = dockerskeleton || ${TRAVIS_TAG%@*} = example"
3433
repo: apache/incubator-openwhisk-runtime-docker
3534
- provider: script
36-
script: "./tools/travis/publish.sh openwhisk dockerskeleton master && ./tools/travis/publish.sh openwhisk example master"
35+
script: "./tools/travis/publish.sh openwhisk dockerskeleton latest && ./tools/travis/publish.sh openwhisk example latest"
3736
on:
3837
branch: master
3938
repo: apache/incubator-openwhisk-runtime-docker

ansible/environments/local/group_vars/all

Lines changed: 0 additions & 49 deletions
This file was deleted.

ansible/environments/local/hosts

Lines changed: 0 additions & 29 deletions
This file was deleted.

tools/travis/build.sh

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,17 @@ UTILDIR="$ROOTDIR/../incubator-openwhisk-utilities"
2727

2828
export OPENWHISK_HOME=$WHISKDIR
2929

30-
IMAGE_PREFIX="testing"
31-
3230
# run scancode using the ASF Release configuration
3331
cd $UTILDIR
3432
scancode/scanCode.py --config scancode/ASF-Release.cfg $ROOTDIR
3533

36-
# Build OpenWhisk
34+
# Build OpenWhisk deps before we run tests
3735
cd $WHISKDIR
38-
39-
#pull down images
40-
docker pull openwhisk/controller
41-
docker tag openwhisk/controller ${IMAGE_PREFIX}/controller
42-
docker pull openwhisk/invoker
43-
docker tag openwhisk/invoker ${IMAGE_PREFIX}/invoker
44-
docker pull openwhisk/nodejs6action
45-
docker tag openwhisk/nodejs6action nodejs6action
46-
4736
TERM=dumb ./gradlew install
37+
# Mock file (works around bug upstream)
38+
echo "openwhisk.home=$WHISKDIR" > whisk.properties
39+
echo "vcap.services.file=" >> whisk.properties
4840

4941
# Build runtime
5042
cd $ROOTDIR
51-
TERM=dumb ./gradlew distDocker -PdockerImagePrefix=${IMAGE_PREFIX}
43+
TERM=dumb ./gradlew distDocker

tools/travis/deploy.sh

Lines changed: 0 additions & 54 deletions
This file was deleted.

tools/travis/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ git clone https://github.com/apache/incubator-openwhisk-utilities.git
3131
# clone main openwhisk repo. for testing purposes
3232
git clone --depth=1 https://github.com/apache/incubator-openwhisk.git openwhisk
3333
cd openwhisk
34+
3435
./tools/travis/setup.sh

tools/travis/test.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ ROOTDIR="$SCRIPTDIR/../.."
2525
WHISKDIR="$ROOTDIR/../openwhisk"
2626

2727
export OPENWHISK_HOME=$WHISKDIR
28-
2928
cd ${ROOTDIR}
3029
TERM=dumb ./gradlew :tests:checkScalafmtAll
3130
TERM=dumb ./gradlew :tests:test
32-
33-
34-

0 commit comments

Comments
 (0)