| 1 | commands: |
| 2 | |
| 3 | make: !Command |
| 4 | description: Build netbuf library |
| 5 | container: ubuntu |
| 6 | run: [cargo, build] |
| 7 | |
| 8 | test: !Command |
| 9 | description: Test netbuf library |
| 10 | container: ubuntu |
| 11 | environ: |
| 12 | RUST_BACKTRACE: 1 |
| 13 | run: [cargo, test] |
| 14 | |
| 15 | coverage: !Command |
| 16 | description: Run coverage tests for netbuf library |
| 17 | container: ubuntu |
| 18 | environ: |
| 19 | RUST_BACKTRACE: 1 |
| 20 | run: | |
| 21 | cargo test --no-run |
| 22 | rm -rf target/cov |
| 23 | kcov target/cov target/debug/netbuf-638268726e961e5a |
| 24 | |
| 25 | _bulk: !Command |
| 26 | description: Run `bulk` command (for version bookkeeping) |
| 27 | container: ubuntu |
| 28 | run: [bulk] |
| 29 | |
| 30 | cargo: !Command |
| 31 | description: Run any cargo command |
| 32 | container: ubuntu |
| 33 | run: [cargo] |
| 34 | |
| 35 | docs: !Command |
| 36 | description: Generate documentation |
| 37 | container: ubuntu |
| 38 | run: [cargo, doc] |
| 39 | |
| 40 | containers: |
| 41 | |
| 42 | ubuntu: |
| 43 | setup: |
| 44 | - !Ubuntu xenial |
| 45 | - !UbuntuUniverse |
| 46 | - !Install [make, wget, ca-certificates, vim, |
| 47 | libssl-dev, build-essential] |
| 48 | |
| 49 | - !TarInstall |
| 50 | url: "https://static.rust-lang.org/dist/rust-1.25.0-x86_64-unknown-linux-gnu.tar.gz" |
| 51 | script: "./install.sh --prefix=/usr \ |
| 52 | --components=rustc,rust-std-x86_64-unknown-linux-gnu,cargo" |
| 53 | |
| 54 | - !BuildDeps [libcurl4-openssl-dev, libelf-dev, libdw-dev, cmake, |
| 55 | python, pkg-config] |
| 56 | - !Install [libdw1, libelf1, libcurl3] |
| 57 | - &bulk !Tar |
| 58 | url: "https://github.com/tailhook/bulk/releases/download/v0.4.11/bulk-v0.4.11.tar.gz" |
| 59 | sha256: b718bb8448e726690c94d98d004bf7575f7a429106ec26ad3faf11e0fd9a7978 |
| 60 | path: / |
| 61 | - !GitInstall |
| 62 | url: git://github.com/SimonKagstrom/kcov |
| 63 | script: | |
| 64 | cmake . |
| 65 | make |
| 66 | make install |
| 67 | |
| 68 | environ: |
| 69 | HOME: /work/target |
| 70 | |
| 71 | nightly: |
| 72 | setup: |
| 73 | - !Ubuntu xenial |
| 74 | - !UbuntuUniverse |
| 75 | - !Install [make, wget, ca-certificates, |
| 76 | libssl-dev, build-essential] |
| 77 | |
| 78 | - !TarInstall |
| 79 | url: "http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz" |
| 80 | script: "./install.sh --prefix=/usr --components=rustc,cargo" |
| 81 | |
| 82 | environ: |
| 83 | HOME: /work/target |
| 84 |