Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/multi_module meger to develop #2533

Merged
merged 214 commits into from
Oct 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
a9ac1b2
merge develop
Jul 23, 2019
ddf4868
remove unuse line
Jul 23, 2019
11123f8
add unit test
Jul 24, 2019
937ea1f
remove unuse code
Jul 24, 2019
c3295eb
remove index
Jul 31, 2019
640e2ee
fix
Jul 31, 2019
b6fce5a
up
Yrp Aug 2, 2019
87ecb24
up
Yrp Aug 2, 2019
7db98e1
add
Yrp Aug 7, 2019
3dd76ef
add actuator
Yrp Aug 7, 2019
e557bdb
git config core.ignorecase false
Yrp Aug 8, 2019
d2a002b
merge chainbase
Aug 8, 2019
642cabd
remove proto build from framework
Yrp Aug 8, 2019
3497a10
split contract proto
Yrp Aug 8, 2019
e66278c
split contract proto
Yrp Aug 8, 2019
e4693cb
split tron.proto
Yrp Aug 8, 2019
7353e89
add chain base
Aug 9, 2019
e13716b
use new protocol in framework
Yrp Aug 9, 2019
2311b11
merge chainbase
Aug 9, 2019
7591a08
merge chainbase
Aug 9, 2019
ce5ca62
merge develop
Aug 9, 2019
845e2bc
merge develop
Aug 9, 2019
6918f81
merge develop
Aug 9, 2019
fa6c71a
actuator
Aug 9, 2019
222229b
merge by method
Yrp Aug 9, 2019
51ea736
merge multi_module
Aug 12, 2019
cc19bc7
account state call back
Aug 12, 2019
db5b11f
Merge branch 'feature/multi_module' of github.com:tronprotocol/java-t…
Yrp Aug 12, 2019
80195a5
merge develop
Aug 12, 2019
58ceec7
add storefactory
Yrp Aug 12, 2019
3485e14
Merge branch 'feature/multi_module' of github.com:tronprotocol/java-t…
Yrp Aug 12, 2019
248f551
dup
Yrp Aug 12, 2019
7405cd6
merge multi_module
Aug 12, 2019
80fd47f
merge multi_module
Aug 12, 2019
676f2b3
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
Aug 12, 2019
2fa17d1
add chain base
Aug 13, 2019
436364f
merge
Yrp Aug 13, 2019
0a5cf56
merge
Yrp Aug 13, 2019
fa4dc62
add zksnark
Aug 14, 2019
41479ef
add zksnark
Aug 14, 2019
1777db2
unit test
Aug 14, 2019
0ecf776
protocol clean *.java
Yrp Aug 14, 2019
b6c8a71
unit test
Aug 14, 2019
284e07f
add zksnark
Aug 15, 2019
70d5e07
Merge pull request #2414 from tronprotocol/feature/multi_module_proto2
Yrp Aug 15, 2019
772159e
fix gradle warning, ignore generated files.
jiangyy0824 Aug 15, 2019
6407f65
up
Yrp Aug 15, 2019
db48c9e
Merge pull request #2417 from tronprotocol/feature/multi_module_proto2
Yrp Aug 15, 2019
3f476f7
unit test fix
Aug 15, 2019
49df190
Merge branch 'multi_module' of https://github.com/tronprotocol/java-t…
Aug 15, 2019
e6fd5d6
Merge branch 'develop' of https://github.com/tronprotocol/java-tron i…
Aug 15, 2019
127cd78
fix unit test
Aug 15, 2019
934e89b
merge
Yrp Aug 16, 2019
c8195dc
merge
Yrp Aug 16, 2019
640b20e
Merge pull request #2416 from tronprotocol/feature/multi_module_proto
Yrp Aug 16, 2019
be1e72e
add vm config and vm loader file
Sh11thead Aug 17, 2019
3d49820
add repository
Sh11thead Aug 17, 2019
5812c03
adjust unit test
Sh11thead Aug 17, 2019
cf14866
fix bug
Aug 18, 2019
6157b15
add consensus
xxo1shine Aug 19, 2019
15d1000
add gradle
Aug 19, 2019
c7a759b
merge feature/multi_module
xxo1shine Aug 19, 2019
9406f8e
complete consensus initialization
xxo1shine Aug 19, 2019
66ffc0d
add account index store
Aug 20, 2019
232b315
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
Aug 20, 2019
3982fa2
add account index store
Aug 20, 2019
57eb030
add daily build
Aug 20, 2019
0c2917b
add daily build
Aug 20, 2019
0ea1db8
unit test fix
Aug 20, 2019
445d78c
unit test fix
Aug 21, 2019
4330765
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
Aug 21, 2019
95613c5
Merge branch 'develop' of https://github.com/tronprotocol/java-tron i…
Aug 21, 2019
2a94313
unit test fix
Aug 21, 2019
340939e
unit test fix
Aug 21, 2019
3929667
refactor build.gradle
Yrp Aug 21, 2019
ec3de18
refactor build.gradle
Yrp Aug 21, 2019
71e6a5c
merge develop
Aug 22, 2019
233b211
move previous vmconfig out
Sh11thead Aug 22, 2019
765adba
move previous VMConfig
Sh11thead Aug 22, 2019
0a23b81
move vm out
Sh11thead Aug 22, 2019
d971aa3
adjust unit test
Sh11thead Aug 22, 2019
d3eb573
consensus add to framwork
xxo1shine Aug 23, 2019
d0f786c
fix bug
Aug 23, 2019
60d3ae8
fix bug
Aug 23, 2019
0970f18
Merge pull request #2426 from tronprotocol/feature/multi_module_build…
Yrp Aug 23, 2019
67dd254
delete unuse file
Aug 23, 2019
1b83d67
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
Aug 23, 2019
85dbe42
add close store
Aug 23, 2019
850f928
Merge branch 'feature/multi_module' into feature/multi_module_addVM
Sh11thead Aug 26, 2019
9f32a10
add blockProduceTimeoutPercent param
xxo1shine Aug 26, 2019
3e2a822
merge develop
Aug 26, 2019
872c12f
Merge remote-tracking branch 'remotes/origin/feature/multi_module' in…
Sh11thead Aug 26, 2019
025fb72
Merge pull request #2433 from tronprotocol/feature/multi_module_addVM
Yrp Aug 26, 2019
b30e89e
modify block process
xxo1shine Aug 26, 2019
4668f9b
Merge branch 'develop' of https://github.com/tronprotocol/java-tron i…
Aug 27, 2019
8695d9c
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
Aug 27, 2019
3efb5d2
conflict resolution
xxo1shine Aug 27, 2019
0d26d0a
Merge pull request #2436 from tronprotocol/consensus_rst
xxo1shine Aug 27, 2019
0806e8c
delete unused code
Sh11thead Aug 27, 2019
16ba637
Merge branch 'feature/multi_module' into feature/multi_module_addVM
Sh11thead Aug 27, 2019
bf7e9a0
Merge branch 'feature/multi_module' into feature/multi_module_addVM
Sh11thead Aug 27, 2019
07d939b
modify consensus const variable
xxo1shine Aug 28, 2019
81a7851
Merge pull request #2440 from tronprotocol/consensus_rst
xxo1shine Aug 28, 2019
ad4d761
Merge pull request #2438 from tronprotocol/feature/multi_module_addVM
Sh11thead Aug 29, 2019
4d73c6e
fix bug
Aug 29, 2019
10bdd30
fix bug
Aug 29, 2019
74d52b8
fix bug
Aug 29, 2019
3e39675
fix bug
Aug 29, 2019
b158e01
fix bug
Aug 29, 2019
8ef3d14
fix bug
Aug 29, 2019
9d1b5cf
fix bug
Aug 29, 2019
139b40e
fix bug
Aug 30, 2019
48dafd1
fix bug
Aug 30, 2019
144234e
revert code
Sep 2, 2019
71870ed
remove unuse line
Sep 2, 2019
95c966e
init DBConfig
Sh11thead Sep 2, 2019
237d606
modify consensus log and review bug
xxo1shine Sep 2, 2019
c8ac35c
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
xxo1shine Sep 2, 2019
c860873
Merge pull request #2448 from tronprotocol/consensus_rst
xxo1shine Sep 2, 2019
9639887
revert
Sh11thead Sep 2, 2019
e880821
Merge remote-tracking branch 'origin/feature/multi_module' into featu…
Sh11thead Sep 2, 2019
8a35749
fix dbconfig
Sep 2, 2019
1c9eb7e
allowTvmConstantinople logic
Sh11thead Sep 2, 2019
48e6b8c
fix bug
Sep 3, 2019
7be77f6
add check point
Sep 3, 2019
f8df5f5
Merge pull request #2449 from tronprotocol/feature/multi_moduleFix
Yrp Sep 3, 2019
6f387f7
fix bug
Sep 3, 2019
630652e
fix unit test
Sep 3, 2019
7a6880d
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
xxo1shine Sep 3, 2019
f7e2547
unit test fix
Sep 4, 2019
6f42e00
fix bug
Sep 5, 2019
6ad3763
fix bug
Sep 6, 2019
8820317
code and log optimization
xxo1shine Sep 9, 2019
7dd71d9
Merge pull request #2455 from tronprotocol/consensus_rst
xxo1shine Sep 9, 2019
2131cb2
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
xxo1shine Sep 9, 2019
ec08f1a
solve maintenance processProposals bug
xxo1shine Sep 9, 2019
d5c7b31
merge develop
xxo1shine Sep 9, 2019
a035bd6
unit test fix
Sep 9, 2019
7d9c180
fix bug
Sep 9, 2019
65f7d77
fix bug
Sep 11, 2019
1671429
modify unit test
xxo1shine Sep 23, 2019
ec49797
modify proposal handle
xxo1shine Sep 24, 2019
ed5ccf9
fix unit test error
Sh11thead Sep 24, 2019
31b699d
fix unit test vmconfig bug
Sh11thead Sep 25, 2019
cac56e3
fox
Sep 26, 2019
16ca7da
merge develop
Sep 27, 2019
32a998a
merge develop
Sep 27, 2019
a57cbab
merge
Yrp Sep 27, 2019
608f680
resolve conflicts
Sh11thead Sep 27, 2019
479339a
Merge remote-tracking branch 'origin/feature/multi_moduleMerge' into …
Sh11thead Sep 27, 2019
780477c
merge develop
Sep 27, 2019
97039fb
merge develop
Sep 27, 2019
c037e89
resolve forkUtils
Sh11thead Sep 27, 2019
1588b14
fix actuator bug
Sep 27, 2019
ea64ffb
merge develop
Sep 27, 2019
c9c4759
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
Sep 28, 2019
f12254c
merge develop
Sep 28, 2019
02736d4
merge develop
Sep 29, 2019
1dfe78b
refactor code
Sh11thead Sep 29, 2019
59f3db1
merge develop
Sep 29, 2019
9a9d0a2
merge develop
Sep 30, 2019
fb5dc23
delete WitnessController.java
xxo1shine Sep 30, 2019
0b99732
reslove conflicts
Sh11thead Sep 30, 2019
5e648b3
merge develop code
xxo1shine Sep 30, 2019
a1916be
optimization transaction model
lvs007 Sep 30, 2019
e3bb842
Merge pull request #2513 from tronprotocol/multi_module_meger_1
xxo1shine Sep 30, 2019
3180f5b
merge develop
Sep 30, 2019
c373c89
merge develop
Sep 30, 2019
0e63085
reslove conflicts
Sh11thead Sep 30, 2019
22b09af
optimization transaction model
lvs007 Sep 30, 2019
9eda6ac
merge develop
Sep 30, 2019
bd8de83
merge develop
Sep 30, 2019
1d873a6
fix bug
Sep 30, 2019
6dd5cea
resolve conflicts
Sh11thead Sep 30, 2019
0876ce5
fix unit test
Oct 1, 2019
6df3ada
modify maintenance process
xxo1shine Oct 8, 2019
af75bb4
Merge branch 'feature/multi_moduleMerge' of https://github.com/tronpr…
xxo1shine Oct 8, 2019
428a9bd
modify the class name
lvs007 Oct 8, 2019
d852f86
fix unit test
Oct 8, 2019
49dc09d
reslove conflicts
Sh11thead Oct 8, 2019
78469f4
merge conflict
Oct 8, 2019
5bda6c2
Merge branch 'feature/multi_moduleMerge' of https://github.com/tronpr…
Oct 8, 2019
f50de13
reslove conflicts
Sh11thead Oct 8, 2019
c553d24
reslove conflicts
Sh11thead Oct 8, 2019
5a728da
fix unit test
Oct 8, 2019
35b5be6
merge develop
Oct 8, 2019
7ebaf27
fix merge conflict
lvs007 Oct 8, 2019
7ab7dc4
fix proto bug
Oct 8, 2019
9894dd2
fix proto bug
Oct 8, 2019
facdf52
fix the merge conflict
lvs007 Oct 9, 2019
77efa01
Merge pull request #2520 from tronprotocol/feature/multi_module_merge…
xxo1shine Oct 10, 2019
2aafb70
Merge branch 'feature/multi_module' into optimization_transaction_dev
lvs007 Oct 10, 2019
c6c90e5
fix the class new
lvs007 Oct 10, 2019
a440ec3
fix the test case
lvs007 Oct 10, 2019
b0e9b2d
Merge pull request #2531 from tronprotocol/optimization_transaction_dev
lvs007 Oct 10, 2019
83d2a9a
meger develop
xxo1shine Oct 10, 2019
72e46e5
add querySonar.sh
xxo1shine Oct 10, 2019
6baf159
add config file
xxo1shine Oct 10, 2019
46639c1
add file travis.yml codeclimate.yml
xxo1shine Oct 10, 2019
c7f913b
add test file
xxo1shine Oct 11, 2019
0b8388e
add circleci file
xxo1shine Oct 11, 2019
a9e352d
modify unit test
Sh11thead Oct 11, 2019
498210e
modify unit test
Sh11thead Oct 11, 2019
d7b0278
meger develop
xxo1shine Oct 11, 2019
f2e48a2
move cfg file
xxo1shine Oct 11, 2019
367a09b
modify sonar-project.properties
MiraculousWang Oct 11, 2019
cf9e656
enable config loader in some unit tests
Sh11thead Oct 11, 2019
4ae0224
Merge remote-tracking branch 'origin/feature/multi_module' into featu…
Sh11thead Oct 11, 2019
89f49ad
adjust unit test
Sh11thead Oct 11, 2019
895adc1
modify sonar.properties
MiraculousWang Oct 11, 2019
f4b6630
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
MiraculousWang Oct 11, 2019
12ce851
solve checkstyle problem
xxo1shine Oct 11, 2019
95c6823
Merge branch 'feature/multi_module' of https://github.com/tronprotoco…
xxo1shine Oct 11, 2019
2ce0146
modify sonar bug
xxo1shine Oct 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
364 changes: 363 additions & 1 deletion .gitignore

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions actuator/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
description = "actuator – a series of transactions for blockchain."

// Dependency versions
// ---------------------------------------

def junitVersion = "4.12"
def mockitoVersion = "2.1.0"
def testNgVersion = "6.11"
def slf4jVersion = "1.7.25"
// --------------------------------------

dependencies {
compile project(":chainbase")
compile project(":protocol")
testImplementation "junit:junit:$junitVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"

testImplementation "org.testng:testng:$testNgVersion"

compile "org.slf4j:jcl-over-slf4j:$slf4jVersion"
compile "com.madgag.spongycastle:core:1.58.0.0"
compile 'com.github.tronprotocol:zksnark-java-sdk:master-SNAPSHOT'
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
compile 'org.reflections:reflections:0.9.11'
}

test {

testLogging {
// showing skipped occasionally should prevent CI timeout due to lack of standard output
events=["skipped", "failed"] // "started", "passed"
// showStandardStreams = true
exceptionFormat="full"

debug.events = ["skipped", "failed"]
debug.exceptionFormat="full"

info.events = ["failed", "skipped"]
info.exceptionFormat="full"

warn.events = ["failed", "skipped"]
warn.exceptionFormat="full"
}

maxHeapSize = "1200m"

if (System.getenv("CI") == null) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
}

task testng(type: Test) {
useTestNG()
testLogging {
events=["skipped", "failed"]
exceptionFormat="full"

debug.events = ["skipped", "failed"]
debug.exceptionFormat="full"

info.events = ["failed", "skipped"]
info.exceptionFormat="full"

warn.events = ["failed", "skipped"]
warn.exceptionFormat="full"
}
}

check.dependsOn testng
24 changes: 24 additions & 0 deletions actuator/gradle/buildViaTravis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
# This script will build the project.

buildTag="$TRAVIS_TAG"

if [ "$buildTag" != "" ] && [ "${buildTag:0:3}" != "v2." ]; then
echo -e "Wrong tag on the 2.x brach: $buildTag : build stopped"
exit 1
fi

export GRADLE_OPTS=-Xmx1024m

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
./gradlew -PreleaseMode=pr build
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
./gradlew -PreleaseMode=branch -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build --stacktrace
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
./gradlew -PreleaseMode=full -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build --stacktrace
else
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
fi
34 changes: 34 additions & 0 deletions actuator/gradle/javadoc_cleanup.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// remove the excessive whitespaces between method arguments in the javadocs
task javadocCleanup(dependsOn: "javadoc") doLast {
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Flowable.html'));
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Observable.html'));
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Single.html'));
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Maybe.html'));
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/Completable.html'));

fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/flowables/ConnectableFlowable.html'));
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/observables/ConnectableObservable.html'));

fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/subjects/ReplaySubject.html'));
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/processors/ReplayProcessor.html'));
fixJavadocFile(rootProject.file('build/docs/javadoc/io/reactivex/plugins/RxJavaPlugins.html'));
}

def fixJavadocFile(file) {
println("Cleaning up: " + file);
String fileContents = file.getText('UTF-8')

// lots of spaces after the previous method argument
fileContents = fileContents.replaceAll(",\\s{4,}", ",\n ");

// lots of spaces after the @NonNull annotations
fileContents = fileContents.replaceAll("@NonNull</a>\\s{4,}", "@NonNull</a> ");

// lots of spaces after the @Nullable annotations
fileContents = fileContents.replaceAll("@Nullable</a>\\s{4,}", "@Nullable</a> ");

file.setText(fileContents, 'UTF-8');
}

javadocJar.dependsOn javadocCleanup
build.dependsOn javadocCleanup
120 changes: 120 additions & 0 deletions actuator/gradle/push_javadoc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
#!/bin/bash
# ----------------------------------------------------------
# Automatically push back the generated JavaDocs to gh-pages
# ----------------------------------------------------------
# based on https://gist.github.com/willprice/e07efd73fb7f13f917ea

# specify the common address for the repository
targetRepo=github.com/ReactiveX/RxJava.git
# =======================================================================

# only for main pushes, for now
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo -e "Pull request detected, skipping JavaDocs pushback."
exit 0
fi

# get the current build tag if any
buildTag="$TRAVIS_TAG"
echo -e "Travis tag: '$buildTag'"

if [ "$buildTag" == "" ]; then
buildTag="snapshot"
else
buildTag="${buildTag:1}"
fi

echo -e "JavaDocs pushback for tag: $buildTag"

# check if the token is actually there
if [ "$GITHUB_TOKEN" == "" ]; then
echo -e "No access to GitHub, skipping JavaDocs pushback."
exit 0
fi

# prepare the git information
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"

# setup the remote
echo -e "Adding the target repository to git"
git remote add origin-pages https://${GITHUB_TOKEN}@${targetRepo} > /dev/null 2>&1

# stash changes due to chmod
echo -e "Stashing any local non-ignored changes"
git stash

# get the gh-pages
echo -e "Update branches and checking out gh-pages"
git fetch --all
git branch -a
git checkout -b gh-pages origin-pages/gh-pages

# releases should update 2 extra locations
if [ "$buildTag" != "snapshot" ]; then
# for releases, add a new directory with the new version
# and carefully replace the others

# 1.) main javadoc
# ----------------
# remove the io subdir
echo -e "Removing javadoc/io"
rm -r javadoc/io

# remove the html files
echo -e "Removing javadoc/*.html"
rm javadoc/*.html

# copy the new doc
echo -e "Copying to javadoc/"
yes | cp -rf ./build/docs/javadoc/ .

# 2.) 2.x javadoc
# remove the io subdir
echo -e "Removing 2.x/javadoc/io"
rm -r 2.x/javadoc/io

# remove the html files
echo -e "Removing 2.x/javadoc/*.html"
rm 2.x/javadoc/*.html

# copy the new doc
echo -e "Copying to 2.x/javadoc/"
yes | cp -rf ./build/docs/javadoc/ 2.x/
fi

# 3.) create a version/snapshot specific copy of the docs
# clear the existing tag
echo -e "Removing to 2.x/javadoc/${buildTag}"
rm -r 2.x/javadoc/${buildTag}

# copy the new doc
echo -e "Copying to 2.x/javadoc/${buildTag}"
yes | cp -rf ./build/docs/javadoc/ 2.x/javadoc/${buildTag}/


# stage all changed and new files
echo -e "Staging new files"
git add *.html
git add *.css
git add *.js
git add *package-list*

# remove tracked but deleted files
echo -e "Removing deleted files"
git add -u

# commit all
echo -e "commit Travis build: $TRAVIS_BUILD_NUMBER for $buildTag"
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER for $buildTag"

# debug file list
#find -name "*.html"

# push it
echo -e "Pushing back changes."
git push --quiet --set-upstream origin-pages gh-pages


# we are done
echo -e "JavaDocs pushback complete."
Loading