-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
64 lines (55 loc) · 2.25 KB
/
.travis.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: node_js
node_js: 12
services:
- docker
before_install:
- export MOCHA_RUN_TARGET=$T
- export LAYERS=$S
- export KUI="${TRAVIS_BUILD_DIR}"/bin/oui-ascii
- Xvfb :1 -screen 0 ${WINDOW_WIDTH}x${WINDOW_HEIGHT}x24 :1 -ac >& /dev/null &
- Xvfb :2 -screen 0 ${WINDOW_WIDTH}x${WINDOW_HEIGHT}x24 :2 -ac >& /dev/null &
install:
- ./tools/travis/openwhisk/openwhisk.sh & # start up openwhisk in parallel with oui bootstrapping
- ow=$!
- npm ci # initial install
- npm run _${T} # then start the webpack watcher for target T
- wait $ow # finally, wait for openhisk to finish coming up
script: PORT_OFFSET=1 npx kui-testv2 $S
# openwhisk2: second auth see plugins/plugin-openwhisk/src/test/openwhisk2/auth.ts and NEEDS_OPENWHISK_API_GATEWAY=true NEEDS_OPENWHISK_JAVA8=true
# openwhisk4: has NEEDS_OPENWHISK_NODEJS8=true
stages:
- test
- name: release
if: tag =~ /^v([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})$/
jobs:
include:
- env: T="electron" S="openwhisk1"
- env: T="webpack" S="grid"
- env: T="electron" S="grid"
- env: T="webpack" S="openwhisk1"
- env: T="webpack" S="openwhisk3"
- env: T="electron" S="openwhisk3"
- env: T="electron" S="composer1"
- env: T="electron" S="composer2"
- env: T="electron" S="openwhisk2" NEEDS_SECOND_OPENWHISK_AUTH=true NEEDS_OPENWHISK_API_GATEWAY=true NEEDS_OPENWHISK_JAVA8=true
- env: T="electron" S="openwhisk4" NEEDS_OPENWHISK_NODEJS8=true
# the above are test stages; next is the release stage, performed for tag builds
# see ./package.json for the release-it build definition
- stage: release
before_install: true
install: npm ci
script: npm install -g release-it@12.4.3 && release-it
env:
global:
- WEBPACK_CLIENT_URL='http://localhost:9080'
- WINDOW_WIDTH=1400
- WINDOW_HEIGHT=1050
- PATH=bin:$PATH
- KEY=${TRAVIS_JOB_NUMBER}
- LOCAL_OPENWHISK=true # allows e.g. openwhisk/src/test/openwhisk1/headless to avoid trying to host set <not-local>
- NO_OPENWHISK_API_MGMT=true # no openwhisk api management support
- IGNORE_CERTS=true # apache-composer needs this, because it doesn't obey INSECURE_SSL in wskprops
- TEST_ORG=testorg
- TEST_SPACE=testspace
- NEEDS_OPENWHISK=true
# - KUI_TEST_PARALLEL=true