11---
22language : java
3- dist : focal
4- group : focal
5- version : ~> 1.0
3+ dist : bionic
64
75jdk :
86- openjdk11
97
10- # Only run on main (still tests PRs)
11- branches :
12- only :
13- - main
14-
158notifications :
169 email : true
1710
2518
2619env :
2720 global :
28- - MVN_ARGS="--settings build/.travis.settings.xml"
21+ - MVN_ARGS="--settings ./ build/.travis.settings.xml"
2922
3023stages :
3124 - name : Build-Test
@@ -38,40 +31,44 @@ before_install:
3831 - sudo apt-get update
3932 - env | grep TRAVIS
4033 - pyenv global 3.8
41- # create an .env file that is pulled in while executing the v2 integration tests
42- - echo "CODE_ENGINE_URL=https://$CE_API_HOST/v2" > code_engine_v2.env
43- - echo "CODE_ENGINE_AUTH_TYPE=iam" >> code_engine_v2.env
44- - echo "CODE_ENGINE_APIKEY=$CE_API_KEY" >> code_engine_v2.env
45- - echo "CODE_ENGINE_AUTH_URL=$IAM_ENDPOINT" >> code_engine_v2.env
4634
4735jobs :
4836 include :
37+ # Build and test stage
4938 - stage : Build-Test
50- - jdk : openjdk11
39+ jdk : openjdk11
5140 install : true
5241 script :
53- # execute unit tests
5442 - build/setMavenVersion.sh
5543 - mvn verify -fae -DskipITs $MVN_ARGS
56-
44+ - jdk : openjdk11
45+ install : true
46+ script :
47+ - mvn verify -fae -DskipITs $MVN_ARGS
5748 - jdk : openjdk17
5849 install : true
5950 script :
60- # execute all tests including the integration tests
61- - mvn verify -fae $MVN_ARGS
51+ - mvn verify -fae -DskipITs $MVN_ARGS
6252
63- - stage : Semantic-Release
64- if : type != pull_request AND branch = main AND tag IS blank
65- install :
66- - sudo apt-get install python
67- - nvm install 18
68- - npm install -g semantic-release
69- - npm install -g @semantic-release/changelog
70- - npm install -g @semantic-release/exec
71- - npm install -g @semantic-release/git
72- - npm install -g @semantic-release/github
73- - pip install --user bump2version
53+ # Publish stage
54+ - stage : Publish-Release
55+ jdk : openjdk11
56+ name : Publish-Javadoc
57+ install : true
58+ if : tag IS present
7459 script :
75- - semantic-release
60+ - build/setMavenVersion.sh
61+ - mvn clean javadoc:aggregate $MVN_ARGS
62+ - build/publishJavadoc.sh
7663 after_success :
77- - echo "Semantic release has successfully created a new tagged-release"
64+ - echo "Javadocs successfully published to gh-pages!"
65+ # - jdk: openjdk11
66+ # if: tag IS present
67+ # name: Publish-To-Maven-Central
68+ # install: true
69+ # script:
70+ # - build/setupSigning.sh
71+ # - build/setMavenVersion.sh
72+ # - mvn deploy $MVN_ARGS -DskipTests -P central
73+ # after_success:
74+ # - echo "Maven artifacts successfully published to Maven Central!"
0 commit comments