-
Notifications
You must be signed in to change notification settings - Fork 7
/
circle.yml
44 lines (41 loc) · 1.21 KB
/
circle.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: 2
jobs:
build:
docker:
- image: rustlang/rust:nightly
environment:
RUSTFLAGS: -C link-dead-code
steps:
- checkout
- run:
name: "Report versions"
command: |
rustc -vV
cargo -vV
rustup -vV
- run:
name: "Run rustfmt"
command: |
rustup toolchain install nightly --allow-downgrade -c rustfmt
cargo fmt -- --check
- run:
name: "Cargo test"
command: |
export RUST_BACKTRACE=1
cargo test
- run:
name: "C++ test"
command: |
gcc --version
g++ --version
apt-get update
apt-get install cmake -y
cmake --version
mkdir build
cd build
cmake ..
make
cd bin
./cpp-raw
./cpp-dl
./cpp-wrapper