forked from ObeoNetwork/Capella-Extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 2.02 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 releng/org.obeonetwork.capella.update/target/repository/
- touch releng/org.obeonetwork.capella.update/target/repository/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: GE0B8oyxO6z3Z/sAmoHbo4oRjAZOEKQ0hwLagaPwYE+RPpOKZHYNeW7WNwTfxN2067Yic7VZpUPXLMNEs/xBlR7pnnZ+sfCQARGGlIPD9Dxaob6hX1jPJye60p217LR6sBX7q7swm0/XheSBU2EPHb1lBXn9Cw6fQtjZEWYBIWqrrJLB+OatOn7hZ119klhHJCbIz1i8QFmI65L+vXpwYDd6WlY6nT6tjxvyEUuRjQq8Yj3eiOm87vfwaoIHXsrylM4wg6BSGdX08WwIwuoIaSDjhAFKgjnFRIq7APufPWkrjEuggFAbha/GYGKAFq2DeA3E0hAnZSvjU3IeM/zaiYR3FH8wzYvsvhYMBGAE5ETD5aeQiKGU481n84x+WwNGvoNzdjWpKebYEb/thHBHHZJsopTf9z8eyrORgsxT2jJhJ5qHwab0bZy0R88mCR/MPchcX5GfzjkXGI0B1aDbjAYUNK91DFmlqAd75SLVGmUZG64RByOQlR291w+lVEoh0GkvKYAkX8swM5ZGMGJLW3MuzWodLOsGXhZwZHjzMT32kMMf+oi3nhFcyRRoG/6THaLdcoL+yXHCc4iU40wAI1TxJg511erh0MiwE5rJekjfdt/dZMvXQv0735n5GFIhRiE0S8aAkSoI1k3ajz/GtPFMFHHctOi6MOC+WAWdNLA=
bucket: obeo-networkaggregation-releases
local-dir: "${TRAVIS_BUILD_DIR}/nightly"
acl: public_read
skip_cleanup: true
region: eu-west-1
upload-dir: capella-extensions/${TRAVIS_BRANCH}
on:
all_branches: true
repo: ObeoNetwork/Capella-Extensions