Fix build

This commit is contained in:
Daniel Grunwald 2015-05-17 21:35:04 +02:00
parent 461255f3fa
commit db8edd7f4e
3 changed files with 7 additions and 9 deletions

View file

@ -2,13 +2,9 @@ language: rust
env:
global:
- secure: g4kCg8twONwKPquuJmYrvGjo2n0lNtWTbyzFOITNn8FgCxNK2j38Qc9/UhErTR3g3rDjVzsTHZ8FTH7TJZrOK1Nzz90tJG6JHqUv77ufkcBlxgwwjilOz84uQhkDTMpLitMEeQDLEynKeWbxrjtc5LIpjEkxOPk5eiqwzKRN14c=
before_script:
- mkdir -p .cargo && echo 'paths = ["python27-sys"]' > .cargo/config
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc --verbose
after_script:
- mv target/doc doc
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
# 'cargo doc' is broken due to https://github.com/rust-lang/cargo/issues/1622
# - cargo doc --verbose

View file

@ -17,6 +17,8 @@ license = "MIT"
exclude = [
".gitignore",
".travis.yml",
"python27-sys",
"python32-sys",
]
build = "build.rs"
@ -24,6 +26,6 @@ build = "build.rs"
libc="*"
num="*"
# TODO: crates.io version doesn't have necessary conditional cfg flags yet
[dependencies.python27-sys]
git = "https://github.com/dgrunwald/rust-cpython.git"
path="python27-sys"

View file

@ -19,7 +19,7 @@ clean:
make -C extensions/ clean
gh-pages:
git checkout --branch gh-pages git@github.com:dgrunwald/rust-cpython.git
git clone --branch gh-pages git@github.com:dgrunwald/rust-cpython.git gh-pages
.PHONY: gh-pages-doc
gh-pages-doc: doc | gh-pages