New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error rendering/uploading documentation on Travis #557

Closed
killercup opened this Issue Dec 29, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@killercup
Member

killercup commented Dec 29, 2016

In #556 I noticed that travis-cargo apparently does not like generating/uploading documentation from a Cargo workspace.

The current script on master is:

 if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
      (cd diesel && travis-cargo doc -- --features "postgres sqlite chrono uuid")
      (echo "docs.diesel.rs" > diesel/target/doc/CNAME)
      (cd diesel && travis-cargo doc-upload)
    fi

which errors with:

/home/travis/build.sh: line 59: diesel/target/doc/CNAME: No such file or directory
uploading docs...
Traceback (most recent call last):
  File "/home/travis/.local/bin/travis-cargo", line 11, in <module>
    sys.exit(main())
  File "/home/travis/.local/lib/python2.7/site-packages/travis_cargo.py", line 434, in main
    args.func(version, manifest, args)
  File "/home/travis/.local/lib/python2.7/site-packages/travis_cargo.py", line 144, in doc_upload
    with open('target/doc/index.html', 'w') as f:
IOError: [Errno 2] No such file or directory: 'target/doc/index.html'

In #556 I changed this to not do cd diesel before doc-upload, i.e., the script is:

if [[ "$TRAVIS_RUST_VERSION" == stable ]] && [[ "$TRAVIS_BRANCH" == master ]]; then
      (cd diesel && travis-cargo doc -- --features "postgres sqlite chrono uuid")
      (echo "docs.diesel.rs" > target/doc/CNAME)
      (travis-cargo doc-upload)
    fi

but this errors with:

Cargo failed to read `--manifest-path /home/travis/build/diesel-rs/diesel/Cargo.toml` and `--manifest-path /home/travis/build/diesel-rs/diesel`:
error: found a virtual manifest at `/home/travis/build/diesel-rs/diesel/Cargo.toml` instead of a package manifest
error: the manifest-path must be a path to a Cargo.toml file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment