Skip to content

Commit

Permalink
fix(Travis): IBM Cloud SCC Java SDK Travis configuration fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Goswami committed Jun 1, 2021
1 parent dc385fe commit ea3b563
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ env:

stages:
- name: Verify
- name: Build
if: branch = main AND type = push AND fork = false
- name: Release
if: branch = main AND type = push AND fork = false

- name: Deploy
if: branch = main AND type = push AND fork = false AND tag = true

before_install:
- sudo apt-get update
- env | grep TRAVIS
Expand All @@ -30,16 +34,20 @@ before_install:
jobs:
include:
- stage: Verify
jdk: openjdk8
install:
- curl -s https://codecov.io/bash > $HOME/codecov-bash.sh && chmod +x $HOME/codecov-bash.sh
script:
- mvn verify -fae -DskipITs $MVN_ARGS
after_success:
- build/publishCodeCoverage.sh

- stage: Build
jdk: openjdk8
script: build/testScript.sh

- stage: Release
name: Release
jdk: openjdk8
install:
- sudo apt-get update
- sudo apt-get install python
Expand All @@ -51,8 +59,11 @@ jobs:
- npm install @semantic-release/git
- npm install @semantic-release/github
script:
- build/testScript.sh
- npx semantic-release

- stage: Deploy
jdk: openjdk8
script:
- mvn deploy $MVN_ARGS -DskipITs -P central
deploy:
provider: pages
Expand Down

0 comments on commit ea3b563

Please sign in to comment.