11---
22language : java
3- dist : focal
4- group : focal
3+ dist : bionic
54
65jdk :
76- openjdk11
87
9- # Only run on main (still tests PRs)
10- branches :
11- only :
12- - main
13-
148notifications :
159 email : true
1610
2418
2519env :
2620 global :
27- - MVN_ARGS="--settings build/.travis.settings.xml"
21+ - MVN_ARGS="--settings ./ build/.travis.settings.xml"
2822
2923stages :
3024 - name : Build-Test
@@ -37,40 +31,44 @@ before_install:
3731 - sudo apt-get update
3832 - env | grep TRAVIS
3933 - pyenv global 3.8
40- # create an .env file that is pulled in while executing the v2 integration tests
41- - echo "CODE_ENGINE_URL=https://$CE_API_HOST/v2" > code_engine_v2.env
42- - echo "CODE_ENGINE_AUTH_TYPE=iam" >> code_engine_v2.env
43- - echo "CODE_ENGINE_APIKEY=$CE_API_KEY" >> code_engine_v2.env
44- - echo "CODE_ENGINE_AUTH_URL=$IAM_ENDPOINT" >> code_engine_v2.env
4534
4635jobs :
4736 include :
37+ # Build and test stage
4838 - stage : Build-Test
49- - jdk : openjdk11
39+ jdk : openjdk11
5040 install : true
5141 script :
52- # execute unit tests
5342 - build/setMavenVersion.sh
5443 - mvn verify -fae -DskipITs $MVN_ARGS
55-
44+ - jdk : openjdk11
45+ install : true
46+ script :
47+ - mvn verify -fae -DskipITs $MVN_ARGS
5648 - jdk : openjdk17
5749 install : true
5850 script :
59- # execute all tests including the integration tests
60- - mvn verify -fae $MVN_ARGS
51+ - mvn verify -fae -DskipITs $MVN_ARGS
6152
62- - stage : Semantic-Release
63- if : type != pull_request AND branch = main AND tag IS blank
64- install :
65- - sudo apt-get install python
66- - nvm install 18
67- - npm install -g semantic-release
68- - npm install -g @semantic-release/changelog
69- - npm install -g @semantic-release/exec
70- - npm install -g @semantic-release/git
71- - npm install -g @semantic-release/github
72- - 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
7359 script :
74- - semantic-release
60+ - build/setMavenVersion.sh
61+ - mvn clean javadoc:aggregate $MVN_ARGS
62+ - build/publishJavadoc.sh
7563 after_success :
76- - 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