napi-rs/.cirrus.yml

32 lines
865 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
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-01-24 12:33:51 +09:00
- yarn install --immutable --network-timeout 300000
2020-10-13 00:23:15 +09:00
- yarn build
- cargo test -p napi-sys --lib -- --nocapture
- yarn build:test
- yarn test