forked from eclipse-archived/packagedrone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (38 loc) · 3.16 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
language: java
cache:
directories:
- $HOME/.m2
sudo: false
env:
global:
secure: "djD5g15xDWYZ4aIJ/iSiKOcOYFAYYKbKqNXA1W4wUvqa7xuNBs892Puqd6xHrEG48+69XtwpvggwlbULCHB+NfyCjCT9PKn/N0MuLTcgdPq89QOaeskOqC/mFOkBEaXeNudQdbcbygeNdSYzcK9GyqhyS5USzZlNLymjxK+nkzyG9yeOZknKXSGNxISSscZtE3xliozBLzENlKWFnFc9kuDOSPX8+8FdMMYy90nEqTEoxsomHJDBijWanf2a+VyB/cmEvy/Y2KjZoSrGaxPiQ7i6xzkadCKI1hkE5Br4YzT49Si6wEWxKmOKqsqpKDKBUuRnSRlRJMA4nGle/TpPDFO3vfEv8pdbjwhB/8+c9OOU607w6tnhQ6iVY2hZbozRcbFTSGUVQpYLuWWzIu5qrMwtIFiZ9KS7Avrf6y6lixH0eOUW6mzQqd/7JET/0PHjwzNCMCb/qyqvuYaxLIcpTMHdhUZ+2FFwrds4WpsIcq2+QtGbth0hMUrxMWtzlR4+vsCfrEh7LBAXQlteNBQKh7rCJR4JJGskgWKgdd1kDdKBcsmIcEDLY1ARnSWvb/vq8xd90DSCHkm26emfO2jf/tAshTpLq3X0h6bbi8BgKca2yKCPTBPCxVYLFjsQjGay7DpDh0ElKFFDJ8Z2PrBqQDh6CaXPorXiQcgpm2wPXR4="
before_install:
- wget -O maven.tar.gz http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- mkdir maven
- cd maven ; tar --strip-components 1 -xzf ../maven.tar.gz ; cd ..
- chmod a+x maven/bin/mvn
- export M2_HOME=$PWD/maven
- export PATH=$PWD/maven/bin:${PATH}
- hash -r
before_script:
- export M2_HOME=$PWD/maven
- export PATH=$PWD/maven/bin:${PATH}
- hash -r
install:
- cd runtime && travis_retry mvn package && cd ..
script: travis_retry mvn package -B -Prpm
after_success:
- for i in `ls products/org.eclipse.packagedrone.server/target/*.{zip,deb}`; do curl -X PUT --data-binary @$i "https://deploy:$DKEY@packagedrone.eclipse.org/api/v2/upload/channel/packagedrone-ci/$(basename $i)?travis:buildId=$TRAVIS_BUILD_ID&travis:jobId=$TRAVIS_JOB_ID&travis:buildNumber=$TRAVIS_BUILD_NUMBER&travis:jobNumber=$TRAVIS_JOB_NUMBER&travis:repoSlug=$(echo -n $(python -c "import sys; import urllib; print urllib.quote_plus(sys.argv[1])," "$TRAVIS_REPO_SLUG"))"; done
- for i in `find products/org.eclipse.packagedrone.server/target/rpm.*/org.eclipse.packagedrone.server/RPMS/noarch -name "*.rpm"`; do curl -X PUT --data-binary @$i "https://deploy:$DKEY@packagedrone.eclipse.org/api/v2/upload/channel/packagedrone-ci/$(basename $i)?travis:buildId=$TRAVIS_BUILD_ID&travis:jobId=$TRAVIS_JOB_ID&travis:buildNumber=$TRAVIS_BUILD_NUMBER&travis:jobNumber=$TRAVIS_JOB_NUMBER&travis:repoSlug=$(echo -n $(python -c "import sys; import urllib; print urllib.quote_plus(sys.argv[1])," "$TRAVIS_REPO_SLUG"))"; done
- cd testing/server-test && mvn clean test && cd ..
jdk:
- oraclejdk8
addons:
apt:
packages:
- rpm
- liburi-perl
sauce_connect:
username: ctron
access_key:
secure: "guzUYenRXvNlxdtFmAdPZRTZ5zvhEe6jJXyhYzQLSMz8Ce6mkIft+UOHh6Z9zCD+MU8IJRvqDOFGwcJhPcd8ZGkWBrkkCdeTG5GlnzCwxei0PRZrvJQWPJY/eSzqMta/Tid9zoAj/erndi+Fu+6JY2U5BYS40zlZCF/6u9w/iH2OQ6s2PqOs9VbR6z3KF0J8eBlEljU6UACaclLp4UJKRklzC9XODKd3CNZfXesV19qFn1a1ZgAeHMmhhtb72zQ/dmF6aR24aT8FWattfyiiZsWFGNA/ZOQr6wzHQYFtWtJIUQok1aBdpZ3p3o6TeCTqfHDFTZ//5SoyvNuQlIpKbR4pl6H7v2bfd3/fiitFfk7t6Py1eSkeTIzZbbotz3T7Ho/5xX3OBbP2L1KwBlqj6wzrXizlk84wmoaYBIqqpiwKU8547Xy+slEoyZrX4NOTI6jbLFiDCnPovxxpi9Owo9jwpskUUcLWhH9dTmHDlLhqRz6WoFESzCAjMtlub0PYwp8VoHIE2Ga/uVHinxNWC371b20KqXTFlWyK7cCHWyFuFH1uFl2MGjstJOiyXadUwIOkwkJf2X4KBZ4SRszw/su0VaQnOzeepCnjW7JVCHkNwcmgKoROB1j2uvfSjIcYoEXTtU7nE9bY3UZrFso5KWSnVPV3FYoM7u8lKIPSOGU="