From 97d5311b102070810cba7374bce7a1048c999722 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 12 Oct 2020 23:23:15 +0800 Subject: [PATCH] ci: add freebsd ci --- .cirrus.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000..cb38f1b4 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,27 @@ +freebsd_instance: + image: freebsd-12-1-release-amd64 + +task: + name: FreeBSD 12.1 + env: + DEBUG: 'napi:*' + setup_script: + - pkg update + - pkg install -y -f curl node yarn npm libnghttp2 + - curl https://sh.rustup.rs -sSf --output rustup.sh + - sh rustup.sh -y --profile minimal --default-toolchain stable + - . $HOME/.cargo/env + - | + echo "~~~~ rustc --version ~~~~" + rustc --version + echo "~~~~ node -v ~~~~" + node -v + echo "~~~~ yarn --version ~~~~" + yarn --version + test_script: + - . $HOME/.cargo/env + - yarn install --frozen-lockfile --registry https://registry.npmjs.org + - yarn build + - cargo test -p napi-sys --lib -- --nocapture + - yarn build:test + - yarn test