Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ttc18live
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stgroup
ttc18live
Commits
18f1597b
Commit
18f1597b
authored
6 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
Extend copy to solution to generate incremental and flushing variant.
parent
f5a370e3
Branches
Branches containing commit
No related tags found
1 merge request
!1
All4one relast
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cp-to-solution.sh
+43
-5
43 additions, 5 deletions
cp-to-solution.sh
with
43 additions
and
5 deletions
cp-to-solution.sh
+
43
−
5
View file @
18f1597b
#!/usr/bin/env bash
function
build
()
{(
name
=
$1
echo
"Building
$name
"
# temporarily enable integration
function
build_sed_activate
()
{
# enable integration
sed
-i
's/enabled = false/enabled = true/g'
solve/build.gradle
./gradlew
--console
=
plain build
# disable debug
sed
-i
's|"--debug",|//"--debug",|g'
solve/build.gradle
}
function
build_sed_deactivate
()
{
sed
-i
's/enabled = true/enabled = false/g'
solve/build.gradle
sed
-i
's|//"--debug",|"--debug",|g'
solve/build.gradle
sed
-i
's/"--incremental=[^"]*"/"--incremental=param,debug"/g'
solve/build.gradle
sed
-i
's/--flush=[^"]*/--flush=api/g'
solve/build.gradle
}
function
build_incremental
()
{
#TODO
name
=
"
$1
-inc"
echo
"Building
$name
"
build_sed_activate
sed
-i
's/--flush=full/--flush=api/g'
solve/build.gradle
sed
-i
's/"--incremental=[^"]*"/"--incremental=param"/g'
solve/build.gradle
./gradlew
--console
=
plain distTar
build_sed_deactivate
copy_to_ttc
$name
}
function
build_flushing
()
{
#TODO
name
=
"
$1
-flush"
echo
"Building
$name
"
build_sed_activate
sed
-i
's/--flush=api/--flush=full/g'
solve/build.gradle
sed
-i
's/"--incremental=[^"]*"/"--incremental=none"/g'
solve/build.gradle
./gradlew
--console
=
plain distTar
build_sed_deactivate
copy_to_ttc
$name
}
function
copy_to_ttc
()
{(
name
=
$1
ls
-lh
solve/build/distributions
# ensure directory exists and unpack into it
...
...
@@ -24,6 +57,11 @@ function build() {(
rmdir
solve-1.0-SNAPSHOT
)}
function
build
()
{
build_flushing
$@
build_incremental
$@
}
# Build jastadd-ttc18-xml
sed
-i
's/LiveContestDriverEMF/LiveContestDriverXml/'
solve/build.gradle
build
"jastadd-ttc18-xml"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment