Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
bce86d32
Commit
bce86d32
authored
Mar 14, 2019
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: check env variables for deploy stages (i.e skip deploy in forks)
parent
a4a8b05e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
37 deletions
+23
-37
.travis.yml
.travis.yml
+18
-32
bintray-upload.sh
scripts/bintray-upload.sh
+3
-3
travis-master.sh
scripts/travis-master.sh
+1
-1
travis-release.sh
scripts/travis-release.sh
+1
-1
No files found.
.travis.yml
View file @
bce86d32
...
...
@@ -12,8 +12,7 @@ before_install:
-
chmod +x gradlew
# override install to skip 'gradle assemble'
install
:
-
true
install
:
true
env
:
global
:
...
...
@@ -21,34 +20,21 @@ env:
-
JADX_LAST_TAG=$(git describe --abbrev=0 --tags)
-
JADX_VERSION="${JADX_LAST_TAG:1}-b$TRAVIS_BUILD_NUMBER-$(git rev-parse --short HEAD)"
matrix
:
jdk
:
-
openjdk8
-
oraclejdk8
-
openjdk11
script
:
./gradlew clean build
jobs
:
include
:
-
env
:
JDK=oracle-8
jdk
:
oraclejdk8
-
env
:
JDK=openjdk11
jdk
:
openjdk11
script
:
-
java -version
-
./gradlew clean build
deploy
:
-
provider
:
script
skip_cleanup
:
true
on
:
branch
:
master
tags
:
false
condition
:
$JDK = oracle-8
script
:
bash scripts/travis-master.sh
-
provider
:
script
skip_cleanup
:
true
on
:
branch
:
release
tags
:
false
condition
:
$JDK = oracle-8
script
:
bash scripts/travis-release.sh
notifications
:
email
:
-
skylot@gmail.com
-
stage
:
deploy-unstable
jdk
:
openjdk8
if
:
branch = master AND env(BINTRAY_USER) IS present
script
:
bash scripts/travis-master.sh
-
stage
:
deploy-release
jdk
:
openjdk8
if
:
branch = release AND env(GH_TOKEN) IS present
script
:
bash scripts/travis-release.sh
scripts/bintray-upload.sh
View file @
bce86d32
#!/usr/bin/env bash
set
-
x
e
set
-e
export
JFROG_CLI_OFFER_CONFIG
=
false
export
JFROG_CLI_LOG_LEVEL
=
DEBUG
npm
install
-g
jfrog-cli-go
TARGET
=
skylot
/jadx/
${
BINTRAY_PACKAGE
}
/v
${
JADX_VERSION
}
CREDENTIALS
=
"--user=
skylot
--key=
${
BINTRAY_KEY
}
"
TARGET
=
${
BINTRAY_USER
}
/jadx/
${
BINTRAY_PACKAGE
}
/v
${
JADX_VERSION
}
CREDENTIALS
=
"--user=
${
BINTRAY_USER
}
--key=
${
BINTRAY_KEY
}
"
jfrog bt version-create
${
TARGET
}
${
CREDENTIALS
}
--desc
=
${
JADX_VERSION
}
jfrog bt upload
'build/jadx.*\.(zip|exe)'
${
TARGET
}
${
CREDENTIALS
}
--regexp
=
true
--publish
=
true
...
...
scripts/travis-master.sh
View file @
bce86d32
#!/usr/bin/env bash
set
-
x
e
set
-e
# upload coverage to codecov
./gradlew clean build jacocoTestReport
...
...
scripts/travis-release.sh
View file @
bce86d32
#!/usr/bin/env bash
set
-
x
e
set
-e
npm
install
-g
semantic-release
npm
install
-g
semantic-release/exec
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment