Cleanup the Makefile + update travis.yml.
This commit is contained in:
parent
11ee4e46b1
commit
65211aa89a
|
@ -2,7 +2,11 @@ env:
|
||||||
global:
|
global:
|
||||||
- secure: GwyxF8F9NKc9M2YypZZMGyIolTf7lDfeKnhhGre28HuzE4e9oIB7dUGjqYrx6uQ/ei++rpd+pjhTFilnX5inS/E+7R7DRvdX00JERWPF+qgiWpxPAoT/iI2RQ+7PKiLcwrzdzQIhSfIse/FikdpkeSY0FJG9/vu/HXNzFxDBPW0=
|
- secure: GwyxF8F9NKc9M2YypZZMGyIolTf7lDfeKnhhGre28HuzE4e9oIB7dUGjqYrx6uQ/ei++rpd+pjhTFilnX5inS/E+7R7DRvdX00JERWPF+qgiWpxPAoT/iI2RQ+7PKiLcwrzdzQIhSfIse/FikdpkeSY0FJG9/vu/HXNzFxDBPW0=
|
||||||
language: c
|
language: c
|
||||||
|
before_install:
|
||||||
|
- yes | sudo add-apt-repository ppa:cmrx64/cargo
|
||||||
install:
|
install:
|
||||||
|
- sudo apt-get update
|
||||||
|
- sudo apt-get install cargo
|
||||||
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
|
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
|
||||||
- curl -O http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
|
- curl -O http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
|
||||||
- tar xfz rust-nightly-x86_64-unknown-linux-gnu.tar.gz
|
- tar xfz rust-nightly-x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -1,15 +1,11 @@
|
||||||
tmp=_git_distcheck
|
tmp=_git_distcheck
|
||||||
nalgebra_lib_path=lib
|
|
||||||
nalgebra_doc_path=doc
|
nalgebra_doc_path=doc
|
||||||
|
|
||||||
all:
|
all:
|
||||||
mkdir -p $(nalgebra_lib_path)
|
cargo build --release
|
||||||
rustc src/lib.rs --out-dir $(nalgebra_lib_path) --crate-type dylib --crate-type rlib --opt-level 3
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
mkdir -p $(nalgebra_lib_path)
|
cargo test
|
||||||
rustc --test src/lib.rs --opt-level 3 -o test~ && ./test~
|
|
||||||
rm test~
|
|
||||||
rustdoc --test -L lib src/lib.rs
|
|
||||||
|
|
||||||
bench:
|
bench:
|
||||||
rustc --test src/lib.rs --opt-level 3 -o bench~ && ./bench~ --bench
|
rustc --test src/lib.rs --opt-level 3 -o bench~ && ./bench~ --bench
|
||||||
|
|
|
@ -96,7 +96,6 @@ Feel free to add your project to this list if you happen to use **nalgebra**!
|
||||||
* [frog](https://github.com/natal/frog): a machine learning library.
|
* [frog](https://github.com/natal/frog): a machine learning library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#![crate_name = "nalgebra"]
|
|
||||||
#![deny(non_camel_case_types)]
|
#![deny(non_camel_case_types)]
|
||||||
#![deny(unnecessary_parens)]
|
#![deny(unnecessary_parens)]
|
||||||
#![deny(non_uppercase_statics)]
|
#![deny(non_uppercase_statics)]
|
||||||
|
|
Loading…
Reference in New Issue