@@ -5,11 +5,6 @@ dist: bionic
55jdk :
66- openjdk8
77
8- # Only run on main (still tests PRs)
9- branches :
10- only :
11- - main
12-
138notifications :
149 email : true
1510
2318
2419env :
2520 global :
26- - MVN_ARGS="--settings build/.travis.settings.xml"
21+ - MVN_ARGS="--settings ./ build/.travis.settings.xml"
2722
2823stages :
2924 - name : Build-Test
@@ -36,45 +31,44 @@ before_install:
3631 - sudo apt-get update
3732 - env | grep TRAVIS
3833 - pyenv global 3.8
39- # create an .env file that is pulled in while executing the v2 integration tests
40- - echo "CODE_ENGINE_URL=https://$CE_API_HOST/v2" > code_engine_v2.env
41- - echo "CODE_ENGINE_AUTH_TYPE=iam" >> code_engine_v2.env
42- - echo "CODE_ENGINE_APIKEY=$CE_API_KEY" >> code_engine_v2.env
43- - echo "CODE_ENGINE_AUTH_URL=$IAM_ENDPOINT" >> code_engine_v2.env
4434
4535jobs :
4636 include :
37+ # Build and test stage
4738 - stage : Build-Test
4839 jdk : openjdk8
4940 install : true
5041 script :
51- # execute unit tests
5242 - build/setMavenVersion.sh
5343 - mvn verify -fae -DskipITs $MVN_ARGS
5444 - jdk : openjdk11
5545 install : true
5646 script :
57- # execute unit tests
5847 - mvn verify -fae -DskipITs $MVN_ARGS
59-
6048 - jdk : openjdk17
6149 install : true
6250 script :
63- # execute all tests including the integration tests
64- - mvn verify -fae $MVN_ARGS
51+ - mvn verify -fae -DskipITs $MVN_ARGS
6552
66- - stage : Semantic-Release
67- if : type != pull_request AND branch = main AND tag IS blank
68- install :
69- - sudo apt-get install python
70- - nvm install 18
71- -
npm install -g [email protected] 72- - npm install @semantic-release/changelog
73- - npm install @semantic-release/exec
74- - npm install @semantic-release/git
75- - npm install @semantic-release/github
76- - pip install --user bump2version
53+ # Publish stage
54+ - stage : Publish-Release
55+ jdk : openjdk8
56+ name : Publish-Javadoc
57+ install : true
58+ if : tag IS present
7759 script :
78- - npx semantic-release
60+ - build/setMavenVersion.sh
61+ - mvn clean javadoc:aggregate $MVN_ARGS
62+ - build/publishJavadoc.sh
7963 after_success :
80- - echo "Semantic release has successfully created a new tagged-release"
64+ - echo "Javadocs successfully published to gh-pages!"
65+ # - jdk: openjdk8
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