Skip to content

Commit 7492bc6

Browse files
committed
Merge pull request graalvm#4 in G/simpletool from from_github to master
* commit 'c11bf3b8923e18dad7df200e68fcd707a3bdbe48': Do not install native-image. Run shellcheck only on Linux. Use correct jar. Use 19.2.0 everywhere. Run only on GraalVM and run shellcheck. Fix travis. Remove project file. Note that we are still work in progress. Travis update. Update.
2 parents 30df8ec + c11bf3b commit 7492bc6

15 files changed

+881
-493
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ os:
55
language: java
66

77
env:
8-
- GRAALVM_VERSION="19.0.2"
9-
- GRAALVM_VERSION="NONE" SL_BUILD_NATIVE="false"
8+
- GRAALVM_VERSION="19.2.0"
109

1110
install:
1211
- |
@@ -18,11 +17,12 @@ install:
1817
tar -xzf graalvm.tar.gz
1918
export JAVA_HOME="$(pwd)/graalvm-ce-$GRAALVM_VERSION"
2019
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export JAVA_HOME="$JAVA_HOME/Contents/Home"; fi
21-
"$JAVA_HOME/bin/gu" install native-image
2220
else
2321
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
2422
fi
2523
2624
script:
2725
- mvn package
28-
- ./simpletool js example.js
26+
- ./simpletool js example.js
27+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck simpletool; fi
28+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck runJsWithCoverage.sh; fi

LICENSE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Copyright (c) 2012, 2019 Oracle and/or its affiliates. All rights reserved.
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
5+
Subject to the condition set forth below, permission is hereby granted to any
6+
person obtaining a copy of this software, associated documentation and/or data
7+
(collectively the "Software"), free of charge and under any and all copyright
8+
rights in the Software, and any and all patent rights owned or freely
9+
licensable by each licensor hereunder covering either (i) the unmodified
10+
Software as contributed to or provided by such licensor, or (ii) the Larger
11+
Works (as defined below), to deal in both
12+
13+
(a) the Software, and
14+
15+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
16+
one is included with the Software each a "Larger Work" to which the Software
17+
is contributed by such licensors),
18+
19+
without restriction, including without limitation the rights to copy, create
20+
derivative works of, display, perform, and distribute the Software and make,
21+
use, sell, offer for sale, import, export, have made, and have sold the
22+
Software and the Larger Work(s), and to sublicense the foregoing rights on
23+
either these or other terms.
24+
25+
This license is subject to the following condition:
26+
27+
The above copyright notice and either this complete permission notice or at a
28+
minimum a reference to the UPL must be included in all copies or substantial
29+
portions of the Software.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37+
SOFTWARE.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Simple Tool (Work in progress)
2+
3+
A simple demonstration code coverage tool built using Truffle for the GraalVM.
4+
5+
The source code is documented to explain the how and why of writing a Truffle
6+
tool. A good way to find out more is to read the source with comments. We also
7+
like to encourage people to clone the repository and start hacking.
8+
9+
This repository is licensed under the permissive UPL licence. Fork it to begin
10+
your own Truffle tool.
11+
12+
For instructions on how to get started please refer to [our
13+
website](https://www.graalvm.org/docs/graalvm-as-a-platform/implement-instrument/)

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
local graalvm = {
1313
downloads+: {
14-
JAVA_HOME: { name: 'graalvm', version: '19.0.2', platformspecific: true },
14+
JAVA_HOME: { name: 'graalvm', version: '19.2.0', platformspecific: true },
1515
},
1616
},
1717

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
<groupId>com.oracle</groupId>
66
<artifactId>simpletool</artifactId>
7-
<version>19.0.2-SNAPSHOT</version>
7+
<version>19.2.0</version>
88

99
<name>simpletool</name>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<maven.compiler.source>1.8</maven.compiler.source>
1414
<maven.compiler.target>1.8</maven.compiler.target>
15-
<graalvm.version>19.0.2</graalvm.version>
15+
<graalvm.version>19.2.0</graalvm.version>
1616
</properties>
1717

1818
<dependencies>

simpletool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ shift
1515

1616
"$JAVA_HOME/bin/$LAUNCHER" \
1717
--jvm \
18-
--vm.Dtruffle.class.path.append=target/simpletool-19.0.2-SNAPSHOT.jar \
18+
--vm.Dtruffle.class.path.append=target/simpletool-19.2.0.jar \
1919
--simple-code-coverage \
2020
"$@"

0 commit comments

Comments
 (0)