@@ -5,11 +5,6 @@ dist: bionic
5
5
jdk :
6
6
- openjdk8
7
7
8
- # Only run on main (still tests PRs)
9
- branches :
10
- only :
11
- - main
12
-
13
8
notifications :
14
9
email : true
15
10
@@ -36,45 +31,44 @@ before_install:
36
31
- sudo apt-get update
37
32
- env | grep TRAVIS
38
33
- 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
44
34
45
35
jobs :
46
36
include :
37
+ # Build and test stage
47
38
- stage : Build-Test
48
39
jdk : openjdk8
49
40
install : true
50
41
script :
51
- # execute unit tests
52
42
- build/setMavenVersion.sh
53
43
- mvn verify -fae -DskipITs $MVN_ARGS
54
44
- jdk : openjdk11
55
45
install : true
56
46
script :
57
- # execute unit tests
58
47
- mvn verify -fae -DskipITs $MVN_ARGS
59
-
60
48
- jdk : openjdk17
61
49
install : true
62
50
script :
63
- # execute all tests including the integration tests
64
- - mvn verify -fae $MVN_ARGS
51
+ - mvn verify -fae -DskipITs $MVN_ARGS
65
52
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
77
59
script :
78
- - npx semantic-release
60
+ - build/setMavenVersion.sh
61
+ - mvn clean javadoc:aggregate $MVN_ARGS
62
+ - build/publishJavadoc.sh
63
+ after_success :
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
79
73
after_success :
80
- - echo "Semantic release has successfully created a new tagged-release "
74
+ - echo "Maven artifacts successfully published to Maven Central! "
0 commit comments