Browse files

Try to fix Travis once again

  • Loading branch information...
1 parent c5644c9 commit a535538220fd1146d19133da350e17e2f02fef19 @trishume committed Jun 19, 2016
Showing with 12 additions and 3 deletions.
  1. +8 −1 .travis.yml
  2. +2 −1
  3. +2 −1 scripts/
@@ -9,6 +9,13 @@ rust:
- stable
- cargo build
- - cargo doc
+ - |
+ if [ "$TRAVIS_OS_NAME" == "linux" ]
+ then
+ p=$(cd ./target/debug/build/onig_sys-*/out/lib/ && pwd)
+ echo "adding $p to linker path"
+ fi
- cargo test
+ - cargo doc
after_success: curl | sh
@@ -1,12 +1,13 @@
# syntect
+[![Build Status](](
`syntect` is a syntax highlighting library for Rust that uses [Sublime Text syntax definitions]( It aims to be a good solution for any Rust project that needs syntax highlighting, including deep integration with text editors written in Rust.
If you are writing a text editor (or something else needing highlighting) in Rust and this library doesn't fit your needs, I consider that a bug and you should file an issue or email me.
It is currently mostly complete and can parse, interpret and highlight based on Sublime Text syntax and `tmTheme` files.
-Note: the build is currently failing on Travis Linux stable, but succeeding on nightly. The tests work fine on stable for me on OSX so it might just be a Linux issue, or a Travis issue. I'll see if I can figure it out.
+Note: with stable Rust on Linux there is a possibility you might have to add `./target/debug/build/onig_sys-*/out/lib/` to your `LD_LIBRARY_PATH` environment variable. I dunno why or even if this happens on other places than Travis, but see `travis.yml` for what it does to make it work. Do this if you see ` cannot open shared object file`.
### Rendered docs: <>
@@ -9,8 +9,9 @@ set -e
. ./scripts/travis-doc-upload.cfg
[ "$TRAVIS_BRANCH" = master ]
[ "$TRAVIS_PULL_REQUEST" = false ]
+[ "$TRAVIS_OS_NAME" == "linux" ]
+[ "$TRAVIS_RUST_VERSION" == "stable" ]
eval key=\$encrypted_${SSH_KEY_TRAVIS_ID}_key
eval iv=\$encrypted_${SSH_KEY_TRAVIS_ID}_iv

0 comments on commit a535538

Please sign in to comment.