env:
  global:
    - secure: Dr8zLzyRCYquYoKp9Yc8c8LZabfHJue94YSI3A7lGXuZF0w1IKwhyX3QldeJv+K2jHr1akgNnFtobK6dp4Nud9qsp5gLZkwJmtJ+U9vgdGXaByKH7VmVu7SZhi4b+omC6/V+NR4N29lUfg6G7u/XSKvqyog485SOguY0BiKARJ4=
before_install:
  - yes | sudo add-apt-repository ppa:hansjorg/rust
  - yes | sudo add-apt-repository ppa:cmrx64/cargo
  - sudo apt-get update
install:
  - sudo apt-get install rust-nightly liblua5.2-dev cargo
script:
  - cargo test
  - rustdoc src/lib.rs
after_script:
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh

env:
  global:
    - secure: Dr8zLzyRCYquYoKp9Yc8c8LZabfHJue94YSI3A7lGXuZF0w1IKwhyX3QldeJv+K2jHr1akgNnFtobK6dp4Nud9qsp5gLZkwJmtJ+U9vgdGXaByKH7VmVu7SZhi4b+omC6/V+NR4N29lUfg6G7u/XSKvqyog485SOguY0BiKARJ4=
before_install:
  - yes | sudo add-apt-repository ppa:hansjorg/rust
  - sudo apt-get update
install:
  - sudo apt-get install rust-nightly liblua5.2-dev
script:
  - rustc --test -o tests src/lib.rs
  - ./tests
  - rustdoc src/lib.rs
after_script:
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh

Revert "Now using cargo test command"
Revert "Now using cargo test command"

This reverts commit 789dd3fb3a901cf7143b753a4a71b97e8396a327.

Conflicts:
	.travis.yml
