env:
  global:
    - secure: QzXgNe+xs+vDmAHi32zu7nzPZVX8GYbLQlZK4nXSdz+Hk0nOG8hIHioUbBKqCfXyN5p1HAV/TTbRs6R2rgyfxnhmq129R2cUgHFddzXskYHKuVZqT6w+BxMXoRB6/8Sj2EWrITZxJylqlB/gRnNWjtAUN/v+rdF1XUiMaX7rHos=
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 cargo
  - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/rust/rust-nightly/lib
script:
  - cargo build
  - cargo test
  - rustdoc src/jlens.rs -o doc
after_script:
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
env:
  global:
    - secure: QzXgNe+xs+vDmAHi32zu7nzPZVX8GYbLQlZK4nXSdz+Hk0nOG8hIHioUbBKqCfXyN5p1HAV/TTbRs6R2rgyfxnhmq129R2cUgHFddzXskYHKuVZqT6w+BxMXoRB6/8Sj2EWrITZxJylqlB/gRnNWjtAUN/v+rdF1XUiMaX7rHos=
install:
  - curl http://www.rust-lang.org/rustup.sh | sudo sh -
script:
  - cargo build --verbose
  - cargo test --verbose
  - cargo doc --verbose
after_script:
  - ln -s target/doc doc
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
env:
  - LD_LIBRARY_PATH=/usr/local/lib

Use rust-up.sh in Travis build
Use rust-up.sh in Travis build
