Skip to content

Commit 1fa9eb8

Browse files
committed
Add build step back to travis and add new deploy generation.
1 parent 6e14a78 commit 1fa9eb8

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ before_script:
5656
# Run the build and packaging steps with cache
5757
script:
5858
- $TRAVIS_BUILD_DIR/docker-compose.sh pull
59-
#- $TRAVIS_BUILD_DIR/docker-compose.sh build-cache
59+
- $TRAVIS_BUILD_DIR/docker-compose.sh build-cache
6060
- $TRAVIS_BUILD_DIR/docker-compose.sh pack
6161

6262
# Custom script for deploying to GitHub the artifacts
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
# TODO
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"package": {
3+
"name": "metacall",
4+
"repo": "core",
5+
"subject": "MetaCall",
6+
"desc_url": "https://raw.githubusercontent.com/metacall/core/master/README.md",
7+
"website_url": "https://metacall.io",
8+
"issue_tracker_url": "https://github.com/metacall/core/issues",
9+
"vcs_url": "https://github.com/metacall/core.git",
10+
"github_repo": "https://github.com/metacall/core",
11+
"github_use_tag_release_notes": true,
12+
"github_release_notes_file": "RELEASE.txt",
13+
"licenses": ["Apache-2.0"],
14+
"labels": ["metacall", "function-mesh", "programming-language", "inter-language", "ffi"],
15+
"public_download_numbers": false,
16+
"public_stats": false
17+
},
18+
19+
"version": {
20+
"name": "@DEPLOY_VERSION@",
21+
"desc": "@DEPLOY_DESCRIPTION@",
22+
"released": "@DEPLOY_DATE@",
23+
"vcs_tag": "@DEPLOY_VERSION@",
24+
"gpgSign": false
25+
},
26+
27+
"files": [{
28+
"includePattern": "@DEPLOY_ARTIFACTS_PATH@/(.*\\.deb)", "uploadPattern": "$1",
29+
"matrixParams": {
30+
"deb_distribution": "stretch",
31+
"deb_component": "main",
32+
"deb_architecture": "amd64"
33+
}
34+
}
35+
],
36+
37+
"publish": true
38+
}

deploy/packages/pack-metacall.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,14 @@ include(CPack)
241241
# Package target
242242
#
243243

244+
set(DEPLOY_VERSION "${META_VERSION}")
245+
set(DEPLOY_ARTIFACTS_PATH "${CMAKE_BINARY_PATH}/${CPACK_OUTPUT_FILE_PREFIX}")
246+
244247
# Create target
245248
add_custom_target(
246249
pack-${package_name}
247-
COMMAND ${CPACK_COMMAND} --config ${PROJECT_BINARY_DIR}/CPackConfig-${project_name}.cmake
250+
# COMMAND ${CMAKE_COMMAND} -DDEPLOY_VERSION="${DEPLOY_VERSION}" -DDEPLOY_ARTIFACTS_PATH="${DEPLOY_ARTIFACTS_PATH}" -P deploy-${package_name}.cmake
251+
COMMAND ${CPACK_COMMAND} --config ${CPACK_OUTPUT_CONFIG_FILE}
248252
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
249253
)
250254

0 commit comments

Comments
 (0)