Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 6dbe8e5

Browse files
eweitercsantanapr
authored andcommitted
fix build failure on travis (#28)
1 parent 41f0442 commit 6dbe8e5

4 files changed

Lines changed: 28 additions & 15 deletions

File tree

ansible/environments/local/group_vars/all

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
whisk_version_name: local
2-
config_root_dir: /tmp/wskconf
3-
whisk_logs_dir: /tmp/wsklogs
2+
openwhisk_tmp_dir: "{{ lookup('env', 'OPENWHISK_TMP_DIR')|default('/tmp', true) }}"
3+
config_root_dir: "{{ openwhisk_tmp_dir }}/wskconf"
4+
whisk_logs_dir: "{{ openwhisk_tmp_dir }}/wsklogs"
45
docker_registry: ""
56
docker_dns: ""
7+
runtimes_bypass_pull_for_local_images: true
8+
invoker_use_runc: "{{ ansible_distribution != 'MacOSX' }}"
69

710
db_prefix: whisk_local_
811

@@ -19,8 +22,8 @@ apigw_auth_user: ""
1922
apigw_auth_pwd: ""
2023
apigw_host_v2: "http://{{ groups['apigateway']|first }}:{{apigateway.port.api}}/v2"
2124

22-
controller_arguments: '-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=1098'
23-
invoker_arguments: "{{ controller_arguments }}"
25+
invoker_allow_multiple_instances: true
26+
env_hosts_dir: "{{ playbook_dir }}/environments/local"
2427

2528
runtimes_manifest:
2629
defaultImagePrefix: "openwhisk"
@@ -45,3 +48,5 @@ runtimes_manifest:
4548
deprecated: false
4649
blackboxes:
4750
- name: "dockerskeleton"
51+
52+
controller_protocol: "http"

settings.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ include 'python3'
1212

1313
rootProject.name = 'runtime-python-ibm'
1414

15+
gradle.ext.openwhisk = [
16+
version: '1.0.0-SNAPSHOT'
17+
]
18+
1519
gradle.ext.scala = [
1620
version: '2.11.11',
1721
compileFlags: ['-feature', '-unchecked', '-deprecation', '-Xfatal-warnings', '-Ywarn-unused-import']

tests/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ apply plugin: 'scala'
22
apply plugin: 'eclipse'
33
compileTestScala.options.encoding = 'UTF-8'
44

5-
evaluationDependsOn(':whisktests')
6-
75
repositories {
86
mavenCentral()
7+
mavenLocal()
98
}
109

1110
tasks.withType(Test) {
@@ -31,8 +30,8 @@ task testBlueDeployment(type: Test) {
3130

3231
dependencies {
3332
compile "org.scala-lang:scala-library:${gradle.scala.version}"
34-
compile project(':whisktests')
35-
compile project(':whisktests').sourceSets.test.output
33+
compile "org.apache.openwhisk:openwhisk-tests:${gradle.openwhisk.version}:tests"
34+
compile "org.apache.openwhisk:openwhisk-tests:${gradle.openwhisk.version}:test-sources"
3635
}
3736

3837
tasks.withType(ScalaCompile) {

tools/travis/build.sh

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ IMAGE_PREFIX="testing"
1010

1111
export OPENWHISK_HOME=$WHISKDIR
1212

13-
# Build IBM nodejs runtime
14-
cd $ROOTDIR
15-
TERM=dumb ./gradlew \
16-
:python3:distDocker \
17-
-PdockerImagePrefix=${IMAGE_PREFIX}
18-
19-
2013
# Build OpenWhisk
2114
cd $WHISKDIR
2215

@@ -29,3 +22,15 @@ docker pull openwhisk/nodejs6action
2922
docker tag openwhisk/nodejs6action ${IMAGE_PREFIX}/nodejs6action
3023
docker pull openwhisk/python2action
3124
docker tag openwhisk/python2action ${IMAGE_PREFIX}/python2action
25+
26+
TERM=dumb ./gradlew \
27+
:common:scala:install \
28+
:core:controller:install \
29+
:core:invoker:install \
30+
:tests:install
31+
32+
# Build IBM nodejs runtime
33+
cd $ROOTDIR
34+
TERM=dumb ./gradlew \
35+
:python3:distDocker \
36+
-PdockerImagePrefix=${IMAGE_PREFIX}

0 commit comments

Comments
 (0)