File tree Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Original file line number Diff line number Diff line change 1
- # Travis only supports one language per project, so we need to put something
2
- # here. node_js is as good as any other I suppose.
3
- language : node_js
4
- node_js :
5
- - " 0.10"
6
-
7
- # TODO(issue #75): Fix rust travisCi config.
8
- # # For rust, we need to install cargo, rustc. In order to do that, we'll use
9
- # # apt-get, which requires sudo.
10
- # sudo: true
11
- #
12
- # # The rust-nightly package is only built for 14.04 (Trusty) and 16.04 (Xenial),
13
- # # so we cannot use the default Travis ubuntu image (Precise) for these tests.
14
- # dist: trusty
15
-
16
- # Install package dependencies. See
17
- # http://docs.travis-ci.com/user/installing-dependencies/
18
- # gulp: required for JS testing
19
- before_install :
20
- - npm install -g gulp
21
- # TODO(issue #75): Fix rust travisCi config.
22
- # - yes | sudo add-apt-repository ppa:jonathonf/rustlang
23
- # - yes | sudo add-apt-repository ppa:jonathonf/llvm
24
- # - yes | sudo add-apt-repository ppa:jonathonf/gcc
25
- # - sudo apt-get update
26
- #
27
- # install:
28
- # sudo apt-get -y install libstd-rust-1.16 libstd-rust-dev rustc cargo
1
+ matrix :
2
+ include :
3
+ - language : node_js
4
+ node_js :
5
+ - " 0.10"
6
+ - language : rust
7
+ script :
8
+ - cd rust/
9
+ - cargo build --verbose --all
10
+ - cargo test --verbose --all
29
11
30
12
# Define the list of directories to execute tests in.
31
13
env :
32
14
- TEST_DIR=js
33
15
- TEST_DIR=go
34
16
- TEST_DIR=ruby
35
17
- TEST_DIR=python
36
- # TODO(issue #75): Fix rust travisCi config.
37
- # - TEST_DIR=rust
18
+ - TEST_DIR=rust
38
19
39
20
# Test script to run. This is called once for each TEST_DIR value above.
40
21
script : ./run_tests.sh
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if [ "$TEST_DIR" == "python" ]; then
36
36
python python/openlocationcode_test.py
37
37
exit
38
38
fi
39
-
39
+ # Rust?
40
40
if [ " $TEST_DIR " == " rust" ]; then
41
41
curl https://sh.rustup.rs -sSf | sh -s -- -y
42
42
export PATH=$PATH :$HOME /.cargo/bin
You can’t perform that action at this time.
0 commit comments