-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
29 lines (23 loc) · 1.18 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
language: java
dist: trusty
sudo: required
jdk:
- oraclejdk8
before_script: openssl s_client -CApath /etc/ssl/certs/ -connect plugins.gradle.org:443 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/gradle.crt; sudo keytool -importcert -noprompt -file /tmp/gradle.crt -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -alias root -storepass changeit
script:
- cd caom2; gradle --info build javadoc install || exit -1; cd ..
# assemble because build requires native wcslib
- cd caom2-compute; gradle --info assemble javadoc install || exit -1; cd ..
- cd fits2caom2; gradle --info assemble javadoc || exit -1; cd ..
- cd caom2-viz; gradle --info build || exit -1; cd ..
- cd caom2-artifact-resolvers; gradle --info build javadoc || exit -1; cd ..
- cd caom2-validator; gradle --info build || exit -1; cd ..
# checkstyle and html tasks
- if [[ $TRAVIS_JDK_VERSION == 'oraclejdk8' ]]; then
cd caom2-dm; gradle --info build initHTML xslt || exit -1; cd ..;
for i in caom2 caom2-compute caom2-viz caom2-artifact-resolvers caom2-validator; do
cd $i;
gradle checkstyleMain || break -1;
cd ..;
done
fi