index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-06-24 12:06:27.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-06-24 12:06:27.0 +00:00:00
commit
f54c6dc60ebf975e7d10df6cc77088df146892f6 [patch]
tree
bf865f2282680a40e225ae44d4bb4eeb04927fb3
parent
b4f1bccb4fa9774f6802f40661961b91b216a89e
download
f54c6dc60ebf975e7d10df6cc77088df146892f6.tar.gz

test: add freebsd env on cirrus-ci.com



Diff

 .cirrus.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/.cirrus.yml b/.cirrus.yml
new file mode 100644
index 0000000..d1301dd
--- /dev/null
+++ b/.cirrus.yml
@@ -0,0 +1,32 @@
freebsd_instance:
  image: freebsd-12-2-release-amd64

# Test FreeBSD in a full VM on cirrus-ci.com
# The binary will be also built in 32-bit mode, but will execute on a
# 64-bit kernel and in a 64-bit environment. Our tests don't execute
# any of the system's binaries, so the environment shouldn't matter.
task:
  name: FreeBSD
  env:
    LOOM_MAX_PREEMPTIONS: 2
    RUSTFLAGS: -Dwarnings
  setup_script:
    - pkg install -y bash curl
    - curl https://sh.rustup.rs -sSf --output rustup.sh
    - sh rustup.sh -y --profile minimal --default-toolchain stable
    - . $HOME/.cargo/env
    - rustup target add i686-unknown-freebsd
    - |
      echo "~~~~ rustc --version ~~~~"
      rustc --version
  test_script:
    - . $HOME/.cargo/env
    - cargo test --all
  i686_test_script:
    - . $HOME/.cargo/env
    - |
      cargo test --all --target i686-unknown-freebsd
  build_test_script:
    - . $HOME/.cargo/env
    - |
      cargo build --verbose