hansjorg / rust-ci

Django webapp for www.rust-ci.org
Apache License 2.0
17 stars 8 forks source link

doc upload fails with ''sh: 1: Syntax error: "(" unexpected" #22

Open jbalintbiro opened 10 years ago

jbalintbiro commented 10 years ago

The documentation upload fails with the error message in the title.

Example:

https://travis-ci.org/saati/memoize-rs/builds/33984305

huonw commented 10 years ago

I'm hitting this, it seems that the contents of the file is <h1>Server Error (500)</h1>: https://travis-ci.org/huonw/slow_primes/builds/36528575

dtantsur commented 10 years ago

Hit this as well: http://www.rust-ci.org/Divius/rust-dht. Causes my docs to be seriously outdated and no way to a least delete them.

michaelsproul commented 10 years ago

I've run into this too.

https://travis-ci.org/michaelsproul/rust-generic-trie/builds/37570567#L70

https://travis-ci.org/sfackler/rust-postgres/builds/37567504#L195

jgillich commented 10 years ago

I have the same issue. @hansjorg can you look into this? Thanks!

dwrensha commented 9 years ago

I think think would be fixed by https://github.com/hansjorg/rust-ci/pull/16.

Meanwhile, a workaround is to add this to your .travis.yml:

after_script:
  - cp -r target/doc doc
niax commented 9 years ago

Even with having this in my .travis.yml the doc upload is failling with this sh error - https://travis-ci.org/niax/rust-email/builds/41698909

jgillich commented 9 years ago

I'm now using ghp-import with Travis to automatically push docs to gh-pages, like in https://github.com/hyperium/hyper/blob/master/.travis.yml

You need to setup a token manually, but after that it works just perfectly.

dtantsur commented 9 years ago

I already copy target/doc, so it doesn't seem to be related.

gh-pages are nice, but I'd prefer to support central location as well.

jgillich commented 9 years ago

Maybe crates.io will be able to build the docs in the future, but GitHub somehow already is a central location.

daboross commented 9 years ago

The copying target/doc/ to doc/ is unrelated, this is http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN returning <h1>Server Error (500)</h1> - travis isn't getting the build script.