Permalink
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 Readme.md
  3. +2 −1 scripts/travis-doc-upload.sh
View
@@ -9,6 +9,13 @@ rust:
- stable
script:
- 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"
+ export LD_LIBRARY_PATH="${p}:${LD_LIBRARY_PATH}"
+ fi
- cargo test
+ - cargo doc
after_success: curl https://raw.githubusercontent.com/trishume/syntect/master/scripts/travis-doc-upload.sh | sh
View
@@ -1,12 +1,13 @@
# syntect
+[![Build Status](https://travis-ci.org/trishume/syntect.svg?branch=master)](https://travis-ci.org/trishume/syntect)
`syntect` is a syntax highlighting library for Rust that uses [Sublime Text syntax definitions](http://www.sublimetext.com/docs/3/syntax.html#include-syntax). 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 `libonig.so: cannot open shared object file`.
### Rendered docs: <http://thume.ca/rustdoc/syntect/syntect/>
@@ -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.