forked from arduino/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 2.45 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
language: java
dist: trusty
before_install:
- sudo apt-get -y install lib32z1 lib32ncurses5 lib32bz2-1.0
# - ln -sf /usr/bin/x86_64-w64-mingw32-ld /home/javydreamercsw/NetBeansProjects/pcgen/build/tmp/launch4j/bin-launch4j-3.9/bin/ld
# - ln -sf /usr/bin/x86_64-w64-mingw32-windres /home/javydreamercsw/NetBeansProjects/pcgen/build/tmp/launch4j/bin-launch4j-3.9/bin/windres
# - /var/lib/dpkg/info/ca-certificates-java.postinst configure
matrix:
include:
- name: "Linux Build"
env:
- TARGET=linux64
- TARGET_FOLDER=linux
- TARGET_PKG=tar.xz
- name: "Windows Build"
env:
- TARGET=windows
- TARGET_FOLDER=windows
- TARGET_PKG=zip
# - env:
# - TARGET=macosx
before_script:
- export VERSION=$(grep "VERSION_NAME" arduino-core/src/processing/app/BaseNoGui.java | head -n 1 | awk '{print $7}' |sed 's/^"\(.*\)".*/\1/')
- export VERSION=${VERSION}-BETA-rjlr
script: cd ./build && ant -Dversion=${VERSION} -Dplatform=$TARGET dist
# script: cd ./build && echo "$VERSION"
before_deploy:
# - export VERSION=$(grep "VERSION_NAME" ../arduino-core/src/processing/app/BaseNoGui.java | head -n 1 | awk '{print $7}' |sed 's/^"\(.*\)".*/\1/')
- echo " ========== Deploy version - $VERSION"
- git config --local user.name "Ricardo JL Rufino"
- git config --local user.email "[email protected]"
# - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
# - export TRAVIS_TAG=$VERSION-$(date +'%Y%m%d%H%M%S')
- export TRAVIS_TAG="preview"
- git tag $TRAVIS_TAG
deploy:
provider: releases
api_key:
secure: s3UsHvegodagPUvfoPoIvXiWoApGjWj7ggRQFw3tphiE8oK+uL3t1JQMKPLTNL2Zu4xJCNYTOdMH7WOwuoz2W8OIMhbcmfjJgDA9OnFi6x1RsW6fGHfnZpk3jjJ5SsS0ySv2v7bbfxzLtmj50R8k/kEYMoAMSycwOXdz61qchZrbp/Uhv8f8lV9AgxXzcEhkmrMwBqpFSMfkdIPUlJElHgJIfTBphXodpfhXblW5FJZ3GjmASj2vm3ra03uFlxioIdLi1oXUqmwQq3YDvZaxyx1vk15RrB33r1MMXwk6jGpg5wGj2PGj6VanGfqOapsN74IKdlC2fBafGzvjUWcYpINiObE4oZ+u8rtyFp1ysi99YZJo3/DrZzvLqmr9hv3ULiXwJFWPibR8zj0Nhf1W+oCpOL01mUc8TIMw8UBODnCfT5lMQRuj3WAh7kOfYGF3zpdfI6g3aisexJKXur3C74EuZ8m4yd3sucpDHUBmHx7POZ0uz7npZIUWm+GO46tM/h9h1z3ltPwfL/TPUIkPcPHBnEnqzga4aIeyRwyV0ZnzeiRocaQ8pu8XdrnQxre3eHzTA/PLDsPUFDHwhQ++ybGBpewI1H0Mfz9r206vBKLH32OIwTFC0HiEwM23YGuhqcHhwzVw+PfRkiZ5a0HhyaTlH5yVDJlu+n9sboU8Rzc=
file: "/home/travis/build/ricardojlrufino/Arduino/build/$TARGET_FOLDER/arduino-${VERSION}-*"
skip_cleanup: true
draft: true
overwrite: true
file_glob: true
on:
all_branches: true