Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abcl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abcl
abcl
Commits
42c6c0eb
Unverified
Commit
42c6c0eb
authored
Nov 24, 2019
by
Mark Evenson
Committed by
GitHub
Nov 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8 from armedbear/master
Sync from <
https://github.com/armedbear/abcl/
>
parents
a9f61673
a08759a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
31 deletions
+61
-31
.travis.yml
.travis.yml
+1
-2
ci/ensure-jenv-is-present.bash
ci/ensure-jenv-is-present.bash
+6
-1
ci/install-adoptjdk.bash
ci/install-adoptjdk.bash
+9
-22
ci/install-jenv.bash
ci/install-jenv.bash
+1
-6
ci/set-jdk.bash
ci/set-jdk.bash
+44
-0
No files found.
.travis.yml
View file @
42c6c0eb
...
...
@@ -24,7 +24,6 @@ addons:
packages
:
-
ant
-
maven
env
:
-
ABCL_JDK=openjdk8
-
ABCL_JDK=openjdk11
...
...
@@ -33,7 +32,7 @@ install:
-
echo $(pwd)
-
bash -x ${TRAVIS_BUILD_DIR}/ci/install-adoptjdk.bash ${ABCL_JDK}
# Build ABCL
-
ant abcl
-
. ${TRAVIS_BUILD_DIR}/ci/ensure-jenv-is-present.bash &&
ant abcl
# Configure finding abcl build source via ASDF
-
bash -x ${TRAVIS_BUILD_DIR}/ci/asdf-finds-abcl.bash
# Install Quicklisp
...
...
ci/ensure-jenv-is-present.bash
View file @
42c6c0eb
#!/bin/bash
if
[[
$(
echo
$PATH
|
grep
-c
.jenv
)
-eq
0
]]
;
then
export
PATH
=
"
$HOME
/.jenv/bin:
$PATH
"
fi
eval
"
$(
jenv init -
)
"
ci/install-adoptjdk.bash
View file @
42c6c0eb
#!/usr/bin/env bash
DIR
=
"
$(
cd
-P
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
source
${
DIR
}
/install-jenv.bash
.
${
DIR
}
/install-jenv.bash
jdk
=
$1
if
[[
-z
$jdk
]]
;
then
jdk
=
openjdk8
fi
# empty variables are not necessary, but a hint that these are not
# lexically scoped in their modification.
...
...
@@ -63,32 +66,16 @@ function add_jdk() {
esac
}
function
set_jdk
()
{
.
${
DIR
}
/ensure-jenv-is-present.bash
jenv versions
determine_adoptjdk
download_and_extract
add_jdk
case
${
ABCL_JDK
}
in
openjdk8
)
version
=
$(
jenv versions |
grep
openjdk |
grep
1.8 |
tail
-1
|
sed
s/
*
//
)
;;
openjdk11
)
version
=
$(
jenv versions |
grep
openjdk |
grep
11.0 |
tail
-1
|
sed
s/
*
//
)
;;
esac
.
${
DIR
}
/set-jdk.bash
pushd
${
TRAVIS_BUILD_DIR
}
jenv doctor
jenv
local
${
version
}
# but practically we guard every invocation of jenv this way
jenv global
${
version
}
popd
}
determine_adoptjdk
download_and_extract
add_jdk
set_jdk
...
...
ci/install-jenv.bash
View file @
42c6c0eb
...
...
@@ -7,16 +7,11 @@ if [[ ! -r "${target}" ]]; then
git clone https://github.com/jenv/jenv.git
"
${
target
}
"
fi
# FIXME: don't always run the init routines?
profile
=
~/.bash_profile
echo
'export PATH="$HOME/.jenv/bin:$PATH"'
>>
${
profile
}
echo
'eval "$(jenv init -)"'
>>
${
profile
}
.
${
profile
}
.
${
DIR
}
/ensure-jenv-is-present.bash
jenv enable-plugin ant
jenv enable-plugin maven
jenv enable-plugin
export
jenv doctor
...
...
ci/set-jdk.bash
0 → 100644
View file @
42c6c0eb
function
set_jdk
()
{
abcl_jdk
=
$1
if
[[
-z
${
abcl_jdk
}
]]
;
then
abcl_jdk
=
openjdk8
fi
dir
=
$1
if
[[
-z
${
dir
}
]]
;
then
dir
=
${
TRAVIS_BUILD_DIR
}
fi
.
${
DIR
}
/ensure-jenv-is-present.bash
jenv versions
case
${
abcl_jdk
}
in
openjdk8
)
version
=
$(
jenv versions |
grep
openjdk |
grep
1.8 |
tail
-1
|
sed
s/
*
//
)
;;
openjdk11
)
version
=
$(
jenv versions |
grep
openjdk |
grep
11.0 |
tail
-1
|
sed
s/
*
//
)
;;
esac
if
[[
-z
${
version
}
]]
;
then
version
=
$(
jenv versions |
tail
-1
|
sed
s/
*
//
)
fi
if
[[
-z
${
version
}
]]
;
then
version
=
1.8
fi
pushd
${
dir
}
jenv
local
${
version
}
# but practically we guard every invocation of jenv this way
jenv global
${
version
}
jenv version
popd
}
set_jdk
${
ABCL_JDK
}
${
TRAVIS_BUILD_DIR
}
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