2020-10-13 00:23:15 +09:00
|
|
|
freebsd_instance:
|
2022-03-05 15:14:32 +09:00
|
|
|
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
|
2022-03-05 15:14:32 +09:00
|
|
|
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
|
2022-03-05 15:14:32 +09:00
|
|
|
- yarn test --verbose
|