summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-27 11:38:40 +0800
committerruki <[email protected]>2017-02-27 11:38:40 +0800
commit6822a4603c33f69bb99d638156f589fd710d13c4 (patch)
tree0f47031bb79bb64d8cf8903076b83d325e8315b2
parente952e27b55bec88af3f5a1f643908a7cd9498ec6 (diff)
install go, dlang and rust for linux travis
-rw-r--r--.travis.yml17
-rwxr-xr-xtests/tests25
2 files changed, 23 insertions, 19 deletions
diff --git a/.travis.yml b/.travis.yml
index 6b67c837a..4cf45cebf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,14 +9,19 @@ branches:
- master
- dev
+addons:
+ apt:
+ packages:
+ - dmd
+ - rust
+ - go
+
install:
- sudo ./install
- - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
- brew update --verbose;
- brew install go --verbose;
- brew install dmd --verbose;
- brew install rust --verbose;
- fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update --verbose; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install go --verbose; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install dmd --verbose; fi
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install rust --verbose; fi
script:
- xmake create -P ./test
diff --git a/tests/tests b/tests/tests
index 1e826a652..0cf0809f3 100755
--- a/tests/tests
+++ b/tests/tests
@@ -48,6 +48,18 @@ build "./tests/console_c++"
build "./tests/static_library_c++"
build "./tests/shared_library_c++"
+# build for go
+build "./tests/console_go"
+build "./tests/static_library_go"
+
+# build for dlang
+build "./tests/console_dlang"
+build "./tests/static_library_dlang"
+
+# build for rust
+build "./tests/console_rust"
+build "./tests/static_library_rust"
+
# merge object
build "./tests/merge_object"
@@ -63,18 +75,5 @@ if [ $host = "macosx" ]; then
# build for swift
build "./tests/console_swift"
-
- # build for go
- build "./tests/console_go"
- build "./tests/static_library_go"
-
- # build for dlang
- build "./tests/console_dlang"
- build "./tests/static_library_dlang"
-
- # build for rust
- build "./tests/console_rust"
- build "./tests/static_library_rust"
-fi
fi