diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2019-11-05 12:59:49 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2019-11-05 13:02:06 +0000 |
commit | b23186dcecbacbfc8560d5504fe745a6a0786987 (patch) | |
tree | a519f630f8bbd86da20bfa11fd4fdd8e0ff3a290 | |
parent | 6b9323516f36f5548b95210215ae4883e9480724 (diff) | |
download | mlua-b23186dcecbacbfc8560d5504fe745a6a0786987.zip |
Add circleci config
-rw-r--r-- | .circleci/config.yml | 46 | ||||
-rw-r--r-- | .travis.yml | 17 |
2 files changed, 46 insertions, 17 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..1890623 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,46 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/rust:latest + steps: + - checkout + - run: + name: Version information + command: rustc --version; cargo --version; rustup --version + - run: + name: Calculate dependencies + command: cargo generate-lockfile + - restore_cache: + keys: + - cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }} + - run: + name: Check Formatting + command: | + rustup component add rustfmt + rustfmt --version + cargo fmt --all -- --check --color=auto + - run: + name: Install Lua + command: | + sudo apt-get update + sudo apt-get -y --no-install-recommends install liblua5.1-0-dev libluajit-5.1-dev liblua5.3-dev + - run: + name: Build all targets + command: cargo build --all --all-targets + - run: + name: Run all tests / Lua 5.3 + command: cargo test --all --no-default-features --features lua53 + - run: + name: Run all tests / Lua 5.1 + command: cargo test --all --no-default-features --features lua51 + - run: + name: Run all tests / LuaJIT + command: cargo test --all --no-default-features --features luajit + - save_cache: + paths: + - /usr/local/cargo/registry + - target/debug/.fingerprint + - target/debug/build + - target/debug/deps + key: cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cbcbbaf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: rust -env: - - RUSTFLAGS="-D warnings" -before_script: - rustup component add rustfmt-preview -matrix: - include: - - rust: stable - script: - - cargo fmt --all -- --check - - cargo test --all --verbose - - rust: beta - script: cargo test --all --verbose - - rust: nightly - script: cargo test --all --verbose --features compiletest_rs - allow_failures: - - rust: nightly |