forked from ObeoNetwork/Bits
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 2 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
language: java
env:
global:
- MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2048m -Xms1024m"
jdk:
- oraclejdk8
sudo: false
# TODO: Gross until Travis support setting maven version or upgrades to 3.3
before_install:
- wget http://mirrors.ircam.fr/pub/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- tar zxvf apache-maven-3.3.9-bin.tar.gz
- chmod +x apache-maven-3.3.9/bin/mvn
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$PWD/apache-maven-3.3.9/bin:${PATH}
- hash -r
before_script:
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$PWD/apache-maven-3.3.9/bin:${PATH}
- hash -r
script:
- mkdir -p thirdparties/org.obeonetwork.bits.thirdparties.update/target/repository/
- touch thirdparties/org.obeonetwork.bits.thirdparties.update/update-site.txt
- mvn clean package -e -Dgpg.skip=true
- chmod a+x prepare-deploy-local-dir.sh
- "./prepare-deploy-local-dir.sh $TRAVIS_BUILD_DIR/nightly"
after_script:
- chmod a+x travis-promote.sh
- ./travis-promote.sh
deploy:
- provider: s3
access_key_id: AKIAI7GYGSUKTIBLAI6Q
secret_access_key:
secure: e2nqmqGa8v/e5UftWRmoEnRjj8F11a9qSh0Pr+gcULB6XiInj2zm+bLugK8ZtbdxcIKVhpmCxnwOZE9qj5e6Bn1J80rgU0ptqXvnoUjDC4Ogjp1V6AEKqXncEPcpwyhMjam8+jg0EpkaWF7rv6sohKZ5yDDJhLw4wUlzvySnirgP6d/U+glcSvs109fa+6le/gPwOHiGHDRE5J6AYmSxLIy26ILTTOJUCuZI5e9eNGfaJvVfNliAW3xyCKUzqsix38gKW9WCuGeGImCN+7uQbf9nZTfVnVaj3XtGaE/KfgT9WZ1Y11o9zsC5NN2P33R0OGAcHm7XLhvSxPLuwMJsHh2JNtNsxEkOi2bueYwmUUBhkgyunSyECqmMhuAsAWslMBWwco3v26F+2GGuWmbtZ1mU7jxlezJAc+oqpF/pK2Sy+Y524PCyJs/owOKB813cI/1HiyhZ5MzGaO1oVQ2rT3F2PDxDPZ4Gk84Vw6P20TwzKxZaqJl3MplWVgkf4J/5YB5RGxC0vD3mXJMgbbXr+QyCORSv+u3335C8EFlx62p2MEhOkP9UB1fY3hhVhzcWGGW4o0MzsrKUlBV5FxcI2pTheazqBtoU1dbosjZOQwkNJHdBi+aufMoSdL0iuZqvHTake4y5DD3gt6hP8u7ep4ETb14xiqrCRctKHHnMg60=
bucket: obeo-networkaggregation-releases
local-dir: "${TRAVIS_BUILD_DIR}/nightly"
acl: public_read
skip_cleanup: true
region: eu-west-1
upload-dir: bits/${TRAVIS_BRANCH}
on:
all_branches: true
repo: ObeoNetwork/Bits