napi-rs/.cirrus.yml

30 lines
847 B
YAML
Raw Normal View History

2020-10-13 00:23:15 +09:00
freebsd_instance:
2021-02-22 16:39:50 +09:00
image: freebsd-12-2-release-amd64
2020-10-13 00:23:15 +09:00
task:
2021-05-27 22:52:21 +09:00
name: FreeBSD
2020-10-13 00:23:15 +09:00
env:
DEBUG: 'napi:*'
2021-05-27 22:52:21 +09:00
RUSTUP_HOME: /usr/local/rustup
CARGO_HOME: /usr/local/cargo
PATH: /usr/local/cargo/bin:$PATH
RUSTUP_IO_THREADS: 1
2020-10-13 00:23:15 +09:00
setup_script:
- pkg update
2020-11-10 12:09:25 +09:00
- pkg install -y -f curl node yarn npm libnghttp2
2020-10-13 00:23:15 +09:00
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --profile minimal --default-toolchain stable
- |
echo "~~~~ rustc --version ~~~~"
rustc --version
echo "~~~~ node -v ~~~~"
node -v
echo "~~~~ yarn --version ~~~~"
yarn --version
test_script:
- yarn install --ignore-platform --ignore-scripts --frozen-lockfile --registry https://registry.npmjs.org
2020-10-13 00:23:15 +09:00
- yarn build
- cargo test -p napi-sys --lib -- --nocapture
- yarn build:test
- yarn test