Skip to content

Commit 1817e1c

Browse files
committed
Merge pull request #168 from ToniA/beta
Create checksum, history and version files on Travis-CI builds
2 parents 17e7686 + cb10b88 commit 1817e1c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ before_install:
3232

3333
# Build matrix definition
3434
# * Two builds
35-
# 1. Linux amd64
35+
# 1. Linux x86_64
3636
# 2. Apple OSX
3737
matrix:
3838
include:
39-
# Linux amd64
39+
# Linux x86_64
4040
- os: linux
4141
compiler:
4242
- gcc
43-
env: TARGET_ARCHITECTURE=amd64
43+
env: TARGET_ARCHITECTURE=x86_64
4444
addons:
4545
apt:
4646
sources:
@@ -59,6 +59,7 @@ matrix:
5959
- libssl-dev
6060
- libudev-dev
6161
- git
62+
- libdigest-sha-perl
6263
script:
6364
- (cd open-zwave-read-only; make)
6465
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=open-zwave-read-only
@@ -67,7 +68,7 @@ matrix:
6768
- os: osx
6869
compiler:
6970
- gcc
70-
env: TARGET_ARCHITECTURE=amd64
71+
env: TARGET_ARCHITECTURE=x86_64
7172
install:
7273
- brew install cmake
7374
- brew install boost|| true
@@ -76,6 +77,7 @@ matrix:
7677
- brew install zlib || true
7778
- brew install openssl
7879
- brew link openssl --force
80+
- brew install md5sha1sum
7981
- export LDFLAGS=-L/usr/local/opt/openssl/lib
8082
- export CPPFLAGS=-I/usr/local/opt/openssl/include
8183
script:
@@ -86,11 +88,14 @@ matrix:
8688
# What to do with the build artifacts
8789
# - Upload to the Domoticz file server
8890
before_deploy:
89-
- tar czf domoticz_${TRAVIS_OS_NAME}_x86_64_latest.tgz domoticz History.txt License.txt domoticz.sh server_cert.pem updatebeta updaterelease www/ scripts/ Config/
91+
- tar czf domoticz_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE)_latest.tgz domoticz History.txt License.txt domoticz.sh server_cert.pem updatebeta updaterelease www/ scripts/ Config/
92+
- shasum -a 256 domoticz_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE)_latest.tgz > domoticz_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE)_latest.tgz.sha256sum
93+
- cp appversion.h.txt version_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE).h
94+
- cp History.txt history_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE).txt
9095
deploy:
9196
skip_cleanup: true
9297
provider: script
93-
script: curl --ftp-ssl -T domoticz_${TRAVIS_OS_NAME}_x86_64_latest.tgz -k -u "$FTP_USER:$FTP_PASSWORD" "ftp://$FTP_HOST/beta/"
98+
script: curl --ftp-ssl -T domoticz_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE)_latest.tgz -T domoticz_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE)_latest.tgz.sha256sum -T version_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE).h -T history_${TRAVIS_OS_NAME}_$(TARGET_ARCHITECTURE).txt -k -u "$FTP_USER:$FTP_PASSWORD" "ftp://$FTP_HOST/beta/"
9499
on:
95100
branch: master
96101
repo: domoticz/domoticz

0 commit comments

Comments
 (0)