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:
|
2021-11-30 19:43:34 +09:00
|
|
|
- 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
|