forked from cloudfoundry/uaa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
174 lines (164 loc) · 5.38 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
env:
global:
- secure: Ubdyw9qc/AVX61ZTehLm90NG5q+qCIPljY5nYNmmkjvNKRIpx1bYIDjFflfXbSKn+opqBdpo5qQJwLQwO1xCvWfDsAO9YlriiqIZQuYXynAqe0hCqKkMn7OqTDR+rZuA+jl7t7LVwWhwbQ4+IiAC44d6CKIa1WPhmgy5dHxBKac=
matrix:
include:
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-generate-docs
- IMAGE_TAG=8.0.0
- TEST_COMMAND=/root/uaa/scripts/generate-docs.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-sqlserver
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=sqlserver,default
- TEST_COMMAND=/root/uaa/scripts/unit-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-singular
- IMAGE_TAG=8.0.0
- TEST_COMMAND=/root/uaa/scripts/jasmine-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-mysql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=mysql,default
- TEST_COMMAND=/root/uaa/scripts/unit-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-postgresql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=postgresql,default
- TEST_COMMAND=/root/uaa/scripts/unit-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-postgresql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=ldap,default
- TEST_COMMAND=/root/uaa/scripts/unit-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-postgresql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=default
- TEST_COMMAND=/root/uaa/scripts/unit-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-mysql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=mysql,default
- TEST_COMMAND=/root/uaa/scripts/integration-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-postgresql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=postgresql,default
- TEST_COMMAND=/root/uaa/scripts/integration-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-postgresql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=ldap,default
- TEST_COMMAND=/root/uaa/scripts/integration-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-postgresql
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=default,hsqldb
- TEST_COMMAND=/root/uaa/scripts/integration-tests.sh
- os: linux
language: java
services:
- docker
env:
- IMAGE_NAME=cfidentity/uaa-sqlserver
- IMAGE_TAG=8.0.0
- SPRING_PROFILE=sqlserver,default
- TEST_COMMAND=/root/uaa/scripts/integration-tests.sh
cache:
apt: true
directories:
- $HOME/.gradle
branches:
except:
- ci-passed
install:
- sudo apt-get -qy install lsof
- nvm install node
- nvm use node
#- sudo chmod a+w `readlink -f $JAVA_HOME/jre/lib/security/cacerts`
#- ./scripts/travis/install-ldap-certs.sh
#- ./scripts/ldap/install-ldap.sh ssl
#- if [ "$SPRING_PROFILE" = "keystone,default" ]; then ./scripts/keystone/install-keystone.sh; fi
#- if [ "$SPRING_PROFILE" = "ldap,default" ]; then ./scripts/ldap/configure-manifest.sh; fi
#- if [ "$SPRING_PROFILE" = "keystone,default" ]; then ./scripts/keystone/configure-manifest.sh; fi
#- mkdir -p $HOME/build/cloudfoundry/uaa/uaa/build/reports/tests
#- sudo apt-get -qy install lsof
before_script:
- docker pull "$IMAGE_NAME" || true
script:
- docker run --privileged -t -v $HOME/build/cloudfoundry/uaa/:/root/build/cloudfoundry/uaa/ -v ${PWD}:/root/uaa --shm-size=1G $IMAGE_NAME:$IMAGE_TAG $TEST_COMMAND "$SPRING_PROFILE" /root/uaa
after_success:
#- ./gradlew coveralls
#- for i in $(find $HOME/build/cloudfoundry/uaa/ -name reports -type d); do rm -rf $i; done
#- /bin/df -h
#- /usr/bin/du -sh *
#- python scripts/travis/travis_after_all.py
#- export $(cat .to_export_back)
- ! "if [ \"$BUILD_LEADER\" = \"YES\" ]; then\n if [ \"$BUILD_AGGREGATE_STATUS\"
= \"others_succeeded\" ]; then\n echo \"All Succeeded!\"\n else\n echo \"Some Failed\"\n fi\nfi\n"
after_failure:
- python scripts/travis/travis_after_all.py
- export $(cat .to_export_back)
- ! "if [ \"$BUILD_LEADER\" = \"YES\" ]; then\n if [ \"$BUILD_AGGREGATE_STATUS\"
= \"others_failed\" ]; then\n echo \"All Failed\"\n else\n echo \"Some Failed\"\n
\ fi\nfi\n"
after_script:
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
after_failure:
- /bin/df -h
- /usr/bin/du -sh *
addons:
artifacts:
key:
secure: yRJd/NtH3uwSCtHLiJKt+X3ZPb57euSZA+gMG4/HkOTdkB0NuZnZaYb0GjKaLRbTAelqottjqPf5LVJXebBvjIAVH5R9C6yC1ghRYBPtHR3AJaod8ZTSUs+mLijvvhwfksKId4aZaF/GgNfPgFnC4IPybh21vTcAfrX4qS9FmN4=
secret:
secure: poV5WnsiLoks4bkd72cBOf/xbgWtD55e9tCodY5V8DFvdKUqxi8ty8ZrUbl54vsHcLcndP4Q0ByQqitkQ+xh+CbyTiBMqRK6mzn/HPuAmTjBXd8Lrc7PieXzKoPxrh0vMl1HtfBy/jii5zVPf2j5C2BxrDxlZCAGnZv+JSaOCKY=
bucket: cf-id-travis-failure-logs
debug: true
paths:
- $(find $HOME/build/cloudfoundry/uaa/ -name tests -type d | tr "\n" ":")