ruffle/.circleci/config.yml

52 lines
1.8 KiB
YAML
Raw Normal View History

2019-05-08 19:39:30 +00:00
version: 2.1
description: Ruffle - Flash Player emulator written in Rust
jobs:
build:
docker:
2019-08-15 21:01:04 +00:00
- image: circleci/rust:1.36
2019-05-08 19:39:30 +00:00
steps:
- checkout
- restore_cache:
key: project-cache
2019-08-22 05:44:49 +00:00
- run:
name: Tests
command: |
rustup toolchain install stable
rustup run stable rustc --version --verbose
rustup run stable cargo test --package=ruffle_core
2019-09-04 20:31:25 +00:00
- run:
name: Clippy + Format
command: |
rustup toolchain install stable
rustup component add --toolchain stable clippy
rustup run stable cargo clippy --version
rustup run stable cargo clippy --all --tests -- -D warnings
rustup component add --toolchain stable rustfmt
rustup run stable cargo fmt --version
rustup run stable cargo fmt --all -- --check
2019-05-08 19:39:30 +00:00
- run:
name: Desktop Build
command: |
sudo apt-get update
sudo apt-get -y install libasound2-dev # Required for cpal crate on Linux
rustup toolchain install stable
rustup run stable rustc --version --verbose
rustup run stable cargo --version --verbose
rustup run stable cargo build --package ruffle_desktop
- run:
name: Web Build
command: |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
rustup toolchain install stable
rustup run stable rustc --version --verbose
rustup run stable cargo --version --verbose
2019-06-25 23:53:58 +00:00
cd web/demo
npm install
npm run build
2019-05-08 19:39:30 +00:00
- save_cache:
key: project-cache
paths:
- "~/.cargo"
- "./target"