napi-rs/.cirrus.yml

33 lines
882 B
YAML
Raw Normal View History

2020-10-13 00:23:15 +09:00
freebsd_instance:
image: freebsd-13-0-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'
CI: '1'
2020-10-13 00:23:15 +09:00
setup_script:
- pkg update
2022-01-12 16:40:25 +09:00
- pkg install -y -f curl node16 libnghttp2
- curl -qL https://www.npmjs.com/install.sh | sh
- npm install -g yarn
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:
2022-04-01 15:29:51 +09:00
- yarn install --immutable --mode=skip-build
2020-10-13 00:23:15 +09:00
- yarn build
- cargo test -p napi-sys --lib -- --nocapture
- yarn build:test
- yarn test --verbose