Merge branch 'master' of github.com:NeoTerm/NeoTerm
This commit is contained in:
commit
9253acdf03
19
.travis.yml
Normal file
19
.travis.yml
Normal file
@ -0,0 +1,19 @@
|
||||
sudo: false
|
||||
language: android
|
||||
jdk: oraclejdk8
|
||||
|
||||
android:
|
||||
components:
|
||||
- platform-tools
|
||||
- tools
|
||||
- build-tools-25.0.2
|
||||
- android-25
|
||||
- extra-android-m2repository
|
||||
|
||||
before_install:
|
||||
- git clone https://github.com/urho3d/android-ndk.git $HOME/android-ndk
|
||||
- export ANDROID_NDK_HOME=$HOME/android-ndk
|
||||
|
||||
script:
|
||||
- ./gradlew testDebugUnitTest
|
||||
|
4
LICENSE
4
LICENSE
@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
NeoTerm Copyright (C) 2017 Lody
|
||||
NeoTerm Copyright (C) 2017 NeoTerm Developers
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
@ -671,4 +671,4 @@ into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
[http://www.gnu.org/philosophy/why-not-lgpl.html].
|
||||
[http://www.gnu.org/philosophy/why-not-lgpl.html].
|
||||
|
@ -1,4 +1,7 @@
|
||||
NeoTerm
|
||||
=======
|
||||
[![Travis build status](https://travis-ci.org/NeoTerm/NeoTerm.svg?branch=master)](https://travis-ci.org/NeoTerm/NeoTerm)
|
||||
|
||||
A modern-designed android terminal emulator for the 21st century.
|
||||
|
||||
|
||||
|
@ -10,27 +10,5 @@ import java.net.URL
|
||||
*
|
||||
* @see [Testing documentation](http://d.android.com/tools/testing)
|
||||
*/
|
||||
class ExampleUnitTest {
|
||||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun test_config_parser() {
|
||||
val pm = NeoPackageManager.get()
|
||||
pm.refreshPackageList(File("/Users/kiva/1.txt"), true)
|
||||
val clang = pm.getPackageInfo("clang")
|
||||
println(">>> Parsed ${pm.packageCount} packages.")
|
||||
}
|
||||
class ExampleUnitTest
|
||||
|
||||
@Test
|
||||
fun test_url() {
|
||||
val url = URL("https://mirrors.geekpie.org/neoterm")
|
||||
val builder = StringBuilder()
|
||||
builder.append(url.host)
|
||||
builder.append("_")
|
||||
if (url.path.isNotEmpty()) {
|
||||
builder.append(url.path.substring(1)) // Skip '/'
|
||||
}
|
||||
builder.append("_dists_stable_main_binary-")
|
||||
val packageListFileName = builder.toString()
|
||||
println(packageListFileName)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user