Skip to content

Commit a27bb84

Browse files
Revert "[FSSDK-11075] chore: remove travis from doc (#558)"
This reverts commit 02aa4bb.
1 parent 02aa4bb commit a27bb84

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
action:
77
required: true
88
type: string
9+
travis_tag:
10+
required: true
11+
type: string
912
secrets:
1013
MAVEN_SIGNING_KEY_BASE64:
1114
required: true
@@ -34,4 +37,4 @@ jobs:
3437
MAVEN_SIGNING_PASSPHRASE: ${{ secrets.MAVEN_SIGNING_PASSPHRASE }}
3538
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
3639
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
37-
run: ./gradlew ${{ inputs.action }}
40+
run: TRAVIS_TAG=${{ inputs.travis_tag }} ./gradlew ${{ inputs.action }}

.github/workflows/integration_test.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
secrets:
1010
CI_USER_TOKEN:
1111
required: true
12+
TRAVIS_COM_TOKEN:
13+
required: true
1214
jobs:
1315
test:
1416
runs-on: ubuntu-latest
@@ -17,21 +19,23 @@ jobs:
1719
with:
1820
# You should create a personal access token and store it in your repository
1921
token: ${{ secrets.CI_USER_TOKEN }}
20-
repository: 'optimizely/ci-helper-tools'
21-
path: 'home/runner/ci-helper-tools'
22+
repository: 'optimizely/travisci-tools'
23+
path: 'home/runner/travisci-tools'
2224
ref: 'master'
2325
- name: set SDK Branch if PR
2426
env:
2527
HEAD_REF: ${{ github.head_ref }}
2628
if: ${{ github.event_name == 'pull_request' }}
2729
run: |
2830
echo "SDK_BRANCH=$HEAD_REF" >> $GITHUB_ENV
31+
echo "TRAVIS_BRANCH=$HEAD_REF" >> $GITHUB_ENV
2932
- name: set SDK Branch if not pull request
3033
env:
3134
REF_NAME: ${{ github.ref_name }}
3235
if: ${{ github.event_name != 'pull_request' }}
3336
run: |
3437
echo "SDK_BRANCH=$REF_NAME" >> $GITHUB_ENV
38+
echo "TRAVIS_BRANCH=$REF_NAME" >> $GITHUB_ENV
3539
- name: Trigger build
3640
env:
3741
SDK: java
@@ -41,13 +45,16 @@ jobs:
4145
GITHUB_TOKEN: ${{ secrets.CI_USER_TOKEN }}
4246
EVENT_TYPE: ${{ github.event_name }}
4347
GITHUB_CONTEXT: ${{ toJson(github) }}
48+
#REPO_SLUG: ${{ github.repository }}
4449
PULL_REQUEST_SLUG: ${{ github.repository }}
4550
UPSTREAM_REPO: ${{ github.repository }}
4651
PULL_REQUEST_SHA: ${{ github.event.pull_request.head.sha }}
4752
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
4853
UPSTREAM_SHA: ${{ github.sha }}
54+
TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}
55+
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}
4956
EVENT_MESSAGE: ${{ github.event.message }}
5057
HOME: 'home/runner'
5158
run: |
5259
echo "$GITHUB_CONTEXT"
53-
home/runner/ci-helper-tools/trigger-script-with-status-update.sh
60+
home/runner/travisci-tools/trigger-script-with-status-update.sh

.github/workflows/java.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131

3232
integration_tests:
3333
if: ${{ startsWith(github.ref, 'refs/tags/') != true && github.event.inputs.SNAPSHOT != 'true' }}
34-
uses: optimizely/java-sdk/.github/workflows/integration_test.yml@master
34+
uses: optimizely/java-sdk/.github/workflows/integration_test.yml@mnoman/fsc-gitaction-test
3535
secrets:
3636
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}
37+
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}
3738

3839
fullstack_production_suite:
3940
if: ${{ startsWith(github.ref, 'refs/tags/') != true && github.event.inputs.SNAPSHOT != 'true' }}
@@ -42,6 +43,7 @@ jobs:
4243
FULLSTACK_TEST_REPO: ProdTesting
4344
secrets:
4445
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}
46+
TRAVIS_COM_TOKEN: ${{ secrets.TRAVIS_COM_TOKEN }}
4547

4648
test:
4749
if: ${{ startsWith(github.ref, 'refs/tags/') != true && github.event.inputs.SNAPSHOT != 'true' }}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Optimizely Java SDK
22

3+
[![Build Status](https://travis-ci.org/optimizely/java-sdk.svg?branch=master)](https://travis-ci.org/optimizely/java-sdk)
34
[![Apache 2.0](https://img.shields.io/badge/license-APACHE%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
45

56
This repository houses the Java SDK for use with Optimizely Feature Experimentation and Optimizely Full Stack (legacy).

0 commit comments

Comments
 (0)