forked from mattnenterprise/rust-ftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 990 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
language: rust
rust:
# check it compiles on the latest stable compiler
- stable
before_install:
- sudo apt-get update -qq
- sudo apt-get install -yqq bc pure-ftpd
- sudo groupadd ftp
- sudo useradd -s /bin/false -d /home/ftp -m -c "anonymous ftp" -g ftp ftp
- echo "no" | sudo tee /etc/pure-ftpd/conf/NoAnonymous
- echo "yes" | sudo tee /etc/pure-ftpd/conf/AnonymousCanCreateDirs
- sudo /etc/init.d/pure-ftpd restart
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo --only stable doc
after_success:
# upload the documentation from the build with stable (automatically only actually
# runs on the master branch, not individual PRs)
- travis-cargo --only stable doc-upload
env:
global:
secure: E/K+u8fhwLNKDvjG6kiuDumrXY/RMZOMa7SS88qhsPKStdHjNmaCwUFUe76RJDzMCqeN31u2mUwvMfMK3xDShABQjoD/tze/KbV5v6VTeL4vplHwZh6TzwaYKKBtNxL1q47A8FSTNK9PUbT+gEIAEY9Nadho7wKrYfT+CQxcb2A=