@@ -14,6 +14,8 @@ addons:
1414 - dbus-x11
1515 - xvfb
1616 - make
17+ - jq # required by dist/build.sh
18+ # - wine # ibid, for windows builds
1719 - g++
1820 - libnss3
1921 - libasound2
@@ -24,36 +26,42 @@ addons:
2426
2527env :
2628 global :
29+ - DISPLAY=:99
2730 - API_HOST=172.17.0.1
2831 - REDIS_URL=redis://172.17.0.1:6379 # we'll pick up openwhisk's redis
29- - UV_THREADPOOL_SIZE=128
30- - NO_NOTIFICATIONS=true
31- - NO_DEBUGGER_BREAKPOINTS=true
32- - WINDOW_WIDTH=1400
33- - WINDOW_HEIGHT=1050
34- - KEY_FROM_LAYER=true
35- - DISPLAY=:99
32+ - UV_THREADPOOL_SIZE=128 # might be superfluous; was trying to work around ESOCKETTIMEOUT on linux
33+ - NO_NOTIFICATIONS=true # try not to use Notifications in the browser
34+ - WINDOW_WIDTH=1400 # ! important ! so that clicks don't fail due to elements being off-viewport
35+ - WINDOW_HEIGHT=1050 # ! ibid !
36+ - KEY_FROM_LAYER=true # use one api key per test layer
37+ - TEST_FROM_BUILD="${TRAVIS_BUILD_DIR}/dist/build/IBM Cloud Shell-linux-x64/IBM Cloud Shell" # test against a specific dist build
3638
3739install :
38- - echo "API_HOST =foo" > ~/.wskprops # dist/compile.sh needs something here
39- - echo "AUTH=bar" >> ~/.wskprops # ibid
40+ - echo "APIHOST =foo" > ~/.wskprops # dist/compile.sh needs something here
41+ - echo "AUTH=bar" >> ~/.wskprops # ibid (see the call to initOW in openwhisk-core.js)
4042 - (cd app && npm install && cd ../tests && npm install && npm run _instrument) & # app and tests npm install
4143 - (./tools/travis/setup.sh; ./tools/travis/build.sh; ./tools/travis/init_auth.sh) & # initialize openwhisk and test docker
42- - wait
43- - Xvfb $DISPLAY -screen 0 ${WINDOW_WIDTH}x${WINDOW_HEIGHT}x24 -ac &
44- - sleep 5
45- - head -50 app/content/js/ui.js
46- # - rm .dockerignore
47- # - cp tools/travis/Dockerfile .
48- # - docker build -t shell-test . # initialize test docker image
44+ - wait # wait for the above &'d background processes
45+ - Xvfb $DISPLAY -screen 0 ${WINDOW_WIDTH}x${WINDOW_HEIGHT}x24 -ac & # start virtual framebuffer process
46+ - sleep 5 # wait a bit for it to come up
47+ - echo "AUTH=bar" >> ~/.wskprops # tools/travis/build.sh overrides this
48+ - (cd dist && ./build.sh linux) # create a dist build to test against
49+ # ^^^ for the dist build, notice that we build for all platforms, even
50+ # though travis only needs linux; this is done purposefully, so as
51+ # to test the dist build mechanism for all platforms
52+ - echo "composer plugin version `cat app/plugins/modules/composer/package.json | jq --raw-output .version`" # log to travis just in case
53+ - cat app/plugins/.pre-scanned | jq .commandToPlugin # ibid
54+ - cat app/plugins/.pre-scanned | jq .overrides # ibid
55+ - echo "install steps completed with success"
4956
57+ # if for some reason we want to avoid the use of travis jobs:
5058# script: (cd tests && npm run test)
5159# script: (cd tests && ./bin/runLocal.sh 01 08 07 02 03 04 05)
5260
5361jobs :
5462 include :
55- - script : (cd tests && ./bin/runLocal.sh 01 08 02 05)
56- env : EXECUTING=01:08:02:05
63+ - script : (cd tests && ./bin/runLocal.sh 01 08 02 05) # test a couple of layers here, as they're all small
64+ env : EXECUTING=01:08:02:05 # this env var will help us distinguish jobs in the travis console
5765 - script : (cd tests && ./bin/runLocal.sh 07)
5866 env : EXECUTING=07
5967 - script : (cd tests && ./bin/runLocal.sh 03)
0 commit comments