-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
30 lines (24 loc) · 1.71 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
notifications:
slack: oicr:S9k4EowgQv9AnbCfEZHSzCsg
language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
services:
- docker
# encryption used for documentation key, pull containers before since Docker Hub can timeout and it should not break a long build
before_install:
- sudo rm /etc/mavenrc
- echo "MAVEN_OPTS='-Xmx4g -XX:MaxPermSize=1024m'" > ~/.mavenrc
- docker pull quay.io/seqware/seqware_test_environment:1.3
#- docker pull seqware/documentation_builder:1.3
#- openssl aes-256-cbc -K $encrypted_b1a0a7dd1d17_key -iv $encrypted_b1a0a7dd1d17_iv -in seqware_jenkins.id_rsa.enc -out seqware_jenkins.id_rsa -d
script:
- docker run -h master -ti --rm -v $HOME/.m2:/home/seqware/.m2 -v $TRAVIS_BUILD_DIR:/home/seqware/gitroot/seqware quay.io/seqware/seqware_test_environment:1.3 /test-start.sh "cd /home/seqware && sudo chown -R seqware:seqware . && cd /home/seqware/gitroot/seqware && cp .travis/settings ~/.seqware && export MAVEN_OPTS=\"-Xmx4096m -XX:MaxPermSize=1024m\" && mvn -B clean install -DskipITs=false && cp seqware-pipeline/target/seqware ~/bin && mvn -B clean install -pl seqware-ext-testing -DskipITs=false -P 'extITs,embeddedTomcat'"
after_success:
- mvn versioneye:update
#- docker run -v $HOME/.m2:/root/.m2 -v $TRAVIS_BUILD_DIR/seqware_jenkins.id_rsa:/root/.ssh/private_key.pem seqware/documentation_builder:1.3 sh -c 'chown -R root . && chown root /root/.ssh/private_key.pem && chmod -R 600 /root/.ssh/private_key.pem && eval `ssh-agent -s` && ssh-add /root/.ssh/private_key.pem && locale && export LC_ALL="en_US.UTF-8" && export LANG="en_US.UTF-8" && locale && export MAVEN_OPTS=\"-Xmx4096m -XX:MaxPermSize=1024m\" && mvn site-deploy'
# sudo required for docker based testing
sudo: required