Merge branch 'master' of github.com:NeoTerm/NeoTerm

This commit is contained in:
zt515 2017-07-28 18:02:31 +08:00
commit 9253acdf03
4 changed files with 25 additions and 25 deletions

19
.travis.yml Normal file
View 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

View File

@ -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].

View File

@ -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.

View File

@ -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)
}
}