-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
142 lines (142 loc) · 5.04 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
language: java
dist: trusty
sudo: false
jdk:
- oraclejdk8
addons:
apt:
packages:
- at-spi2-core
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
before_install:
- df -h
- openssl aes-256-cbc -K $encrypted_1cc7b892dc78_key -iv $encrypted_1cc7b892dc78_iv
-in settings.xml.enc -out settings.xml -d
- mv settings.xml ~/.m2/settings.xml
after_success:
- |
if [ $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "master" ] ; then
cd scripts
chmod 777 ./updateRestOfWollokRepos
"./updateRestOfWollokRepos"
cd ..
fi
script:
- "./wollokInstall.sh"
- cd org.uqbar.project.wollok.releng/
- export PROFILES=normalProfile
- export UPDATE_SITE=none
- if [ $TRAVIS_PULL_REQUEST == "false" -a $TRAVIS_BRANCH == "dev" ] ; then export
UPDATE_SITE="dev" ; fi
- if [ $TRAVIS_PULL_REQUEST == "false" ] && [[ "$TRAVIS_TAG" =~ ^v[0-9.]* ]] ; then
export UPDATE_SITE="stable" ; fi
- echo "Running with profiles $PROFILES"
- echo "Running with UPDATE_SITE $UPDATE_SITE"
- export MAVEN_OPTS=-Xmx2048m
- mvn -e -Darguments='-Dtycho.disableP2Mirrors=false' -Dtycho.disableP2Mirrors=false
-U -DTRAVIS_JOB_ID=$TRAVIS_JOB_ID clean install
# primera versión: Travis ya no manda reportes de cobertura a Coveralls
# jacoco:report coveralls:report
-P $PROFILES
- rm -rf /home/travis/.m2/repository/org/uqbar-project
- df -h
- du -h -d 2 ..
- cd ..
- mkdir results-server
- mv org.uqbar.project.wollok.launch/target/org.uqbar.project.wollok.launch-*-wdk.zip
results-server/
- mkdir results-products
- cp results-server/org.uqbar.project.wollok.launch-*-wdk.zip results-products/org.uqbar.project.wollok.launch-wdk.zip
- mv org.uqbar.project.wollok.updatesite/target/org.uqbar.project.wollok.updatesite-*.zip
results-products/
- mv org.uqbar.project.wollok.updatesite/target/products/*.zip results-products/
- mkdir results-update
- unzip -q results-products/org.uqbar.project.wollok.updatesite-*.zip -d results-update/
- ls results-server
- ls results-products
- df -h
notifications:
webhooks:
urls:
- env.GITTER_URL
on_success: change
on_failure: always
on_start: never
cache:
directories:
- "$HOME/.m2"
after_failure:
- df -h
- du -h -d 4 ..
- cd ..
- cd org.uqbar.project.wollok.tests
- zip -r -9 target.zip target/
- curl -T target.zip -u$BINTRAY_ID:$BINTRAY_API_KEY "https://api.bintray.com/content/wollok/TravisTestLog/WollokTestLogs/$TRAVIS_JOB_ID/target-$TRAVIS_JOB_ID.zip?publish=1&override=1"
- cd target
- zip -r -9 surefire-reports.zip surefire-reports/
- curl -T surefire-reports.zip -u$BINTRAY_ID:$BINTRAY_API_KEY "https://api.bintray.com/content/wollok/TravisTestLog/WollokTestLogs/$TRAVIS_JOB_ID/surefire-reports-$TRAVIS_JOB_ID.zip?publish=1&override=1"
- if [ -f work/data/.metadata/.log ] ; then curl -T work/data/.metadata/.log -u$BINTRAY_ID:$BINTRAY_API_KEY
"https://api.bintray.com/content/wollok/TravisTestLog/WollokTestLogs/$TRAVIS_JOB_ID/log-$TRAVIS_JOB_ID.txt?publish=1&override=1"
; fi
deploy:
- provider: s3
access_key_id: AKIAJLCGMGO45ZQFSLJA
secret_access_key:
secure: S2sP/SZJVO4uJtMrUYud3/qyLm7bN5ohTZrxO3TzONA5qiHYFnQdX+WUiEgbtUL0OZI6ZR5L29E/SRuH07zKEfWODsA7PDsAF7XfpgYi3LC20tqHBMq+07w4HPnRI/K19SC6V1/lnEBCRyGuOd5RIpC3VXccTRcPZDQIAqUviR4=
bucket: wollokserverrepo
local_dir: results-server
upload-dir: "$TRAVIS_BRANCH"
acl: public_read
skip_cleanup: true
region: us-west-2
on:
repo: uqbar-project/wollok
branch:
- dev
- master
- dev-1.5
- provider: s3
access_key_id: AKIAJLCGMGO45ZQFSLJA
secret_access_key:
secure: S2sP/SZJVO4uJtMrUYud3/qyLm7bN5ohTZrxO3TzONA5qiHYFnQdX+WUiEgbtUL0OZI6ZR5L29E/SRuH07zKEfWODsA7PDsAF7XfpgYi3LC20tqHBMq+07w4HPnRI/K19SC6V1/lnEBCRyGuOd5RIpC3VXccTRcPZDQIAqUviR4=
bucket: wollokversions
local_dir: results-products
upload-dir: "$TRAVIS_TAG"
acl: public_read
skip_cleanup: true
region: us-west-2
on:
repo: uqbar-project/wollok
tags: true
- provider: s3
access_key_id: AKIAJLCGMGO45ZQFSLJA
secret_access_key:
secure: S2sP/SZJVO4uJtMrUYud3/qyLm7bN5ohTZrxO3TzONA5qiHYFnQdX+WUiEgbtUL0OZI6ZR5L29E/SRuH07zKEfWODsA7PDsAF7XfpgYi3LC20tqHBMq+07w4HPnRI/K19SC6V1/lnEBCRyGuOd5RIpC3VXccTRcPZDQIAqUviR4=
bucket: wollokdownload
local_dir: results-products
upload-dir: wollok/products/$UPDATE_SITE
acl: public_read
skip_cleanup: true
region: us-west-2
on:
all_branches: true
condition: "$UPDATE_SITE =~ ^dev|stable$"
- provider: s3
access_key_id: AKIAJLCGMGO45ZQFSLJA
secret_access_key:
secure: S2sP/SZJVO4uJtMrUYud3/qyLm7bN5ohTZrxO3TzONA5qiHYFnQdX+WUiEgbtUL0OZI6ZR5L29E/SRuH07zKEfWODsA7PDsAF7XfpgYi3LC20tqHBMq+07w4HPnRI/K19SC6V1/lnEBCRyGuOd5RIpC3VXccTRcPZDQIAqUviR4=
bucket: wollokupdate
local_dir: results-update
upload-dir: wollok/$UPDATE_SITE
acl: public_read
skip_cleanup: true
region: us-west-2
on:
all_branches: true
condition: "$UPDATE_SITE =~ ^dev|stable$"
env:
global:
secure: IJCZW9xrLlUjs/HRkrpagk06zo2+FvKaMygUk6K9Fdim3uSsLmn4UyBazNli0a62oq3XuNpscsCmdVtofUCfZphEHnyIUUTToQ+u6j1KxbICjfIGFMmUEoY/7tZVscQ5SBgiqtEVfUvolN6v4YUtx2FwaS27FW5SV3/x8j6toPw=