2022-01-31 12:42:28 +05:00
|
|
|
# We use Cirrus CI to test on FreeBSD.
|
2022-02-10 04:13:03 +05:00
|
|
|
# For GNU/Linux CI see GitHub Actions.
|
2022-01-31 12:42:28 +05:00
|
|
|
|
2022-01-31 12:38:24 +05:00
|
|
|
freebsd_instance:
|
|
|
|
image_family: freebsd-13-0
|
|
|
|
|
2022-01-31 19:30:28 +05:00
|
|
|
main_freebsd_task:
|
2022-01-31 19:12:53 +05:00
|
|
|
name: Main (FreeBSD)
|
2022-06-03 22:51:20 +03:00
|
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
2022-02-01 06:20:19 +05:00
|
|
|
dependencies_script:
|
2022-06-10 08:23:03 +03:00
|
|
|
- pkg install --yes autoconf automake libtool
|
2022-02-01 06:43:42 +05:00
|
|
|
main_build_script:
|
2022-01-31 12:42:28 +05:00
|
|
|
- ./autogen.sh
|
2022-06-13 19:28:00 +03:00
|
|
|
- ./configure --enable-debug --enable-tests CFLAGS='-O3'
|
2022-01-31 12:42:28 +05:00
|
|
|
- make
|
|
|
|
- sudo make install
|
2022-02-01 06:43:42 +05:00
|
|
|
main_test_script:
|
|
|
|
- make check
|
2022-01-31 13:08:06 +05:00
|
|
|
|
2022-02-01 06:59:36 +05:00
|
|
|
mruby_freebsd_task:
|
|
|
|
name: mruby (FreeBSD)
|
2022-06-03 22:51:20 +03:00
|
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
2022-02-10 03:48:26 +05:00
|
|
|
env:
|
|
|
|
CPATH: '/usr/local/include'
|
|
|
|
LIBRARY_PATH: '/usr/local/lib'
|
2022-05-24 18:25:00 +03:00
|
|
|
MRUBY_YAML_USE_SYSTEM_LIBRARY: x
|
2022-02-01 06:59:36 +05:00
|
|
|
dependencies_script:
|
2022-06-10 08:23:03 +03:00
|
|
|
- pkg install --yes autoconf automake git libtool rubygem-rake wget
|
2022-02-01 06:59:36 +05:00
|
|
|
dependencies_mruby_script:
|
2022-05-28 15:22:50 +03:00
|
|
|
- wget https://github.com/mruby/mruby/archive/3.1.0.zip -O mruby-3.1.0.zip
|
|
|
|
- unzip mruby-3.1.0.zip
|
2022-02-01 06:59:36 +05:00
|
|
|
main_build_script:
|
|
|
|
- ./autogen.sh
|
2022-06-13 19:28:00 +03:00
|
|
|
- ./configure --enable-debug CFLAGS='-O3'
|
2022-02-01 06:59:36 +05:00
|
|
|
- make
|
|
|
|
- sudo make install
|
|
|
|
mruby_test_script:
|
2022-05-28 15:22:50 +03:00
|
|
|
- cd mruby-3.1.0
|
2022-06-09 04:25:27 +03:00
|
|
|
- MRUBY_CONFIG=../bindings/mruby/build_config.rb rake test
|
2022-02-01 06:59:36 +05:00
|
|
|
|
2022-01-31 19:30:28 +05:00
|
|
|
ruby_freebsd_task:
|
2022-01-31 19:12:53 +05:00
|
|
|
name: Ruby (FreeBSD)
|
2022-06-03 22:51:20 +03:00
|
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
2022-02-10 03:48:26 +05:00
|
|
|
env:
|
|
|
|
CPATH: '/usr/local/include'
|
2022-02-10 04:11:02 +05:00
|
|
|
LIBRARY_PATH: '/usr/local/lib'
|
2022-01-31 14:02:08 +05:00
|
|
|
dependencies_script:
|
2022-06-10 08:23:03 +03:00
|
|
|
- pkg install --yes autoconf automake git libtool wget
|
2022-02-01 06:43:42 +05:00
|
|
|
dependencies_ruby_script:
|
2022-02-01 06:28:05 +05:00
|
|
|
- wget https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.gz
|
|
|
|
- tar -xzf ruby-3.0.3.tar.gz
|
2022-01-31 14:04:03 +05:00
|
|
|
- cd ruby-3.0.3
|
2022-02-01 06:51:08 +05:00
|
|
|
- ./configure --disable-install-doc
|
2022-02-01 06:28:05 +05:00
|
|
|
- make
|
2022-01-31 14:04:03 +05:00
|
|
|
- sudo make install
|
2022-02-01 06:43:42 +05:00
|
|
|
main_build_script:
|
2022-01-31 13:08:06 +05:00
|
|
|
- ./autogen.sh
|
2022-06-13 19:28:00 +03:00
|
|
|
- ./configure --enable-debug CFLAGS='-O3'
|
2022-01-31 13:08:06 +05:00
|
|
|
- make
|
|
|
|
- sudo make install
|
2022-02-01 06:43:42 +05:00
|
|
|
ruby_build_script:
|
2022-06-09 04:25:27 +03:00
|
|
|
- cd bindings/ruby
|
2022-02-10 01:03:06 +05:00
|
|
|
- ./bin/setup
|
2022-01-31 14:02:08 +05:00
|
|
|
- bundle exec rake compile
|
2022-02-01 06:43:42 +05:00
|
|
|
ruby_test_script:
|
2022-06-09 04:25:27 +03:00
|
|
|
- cd bindings/ruby
|
2022-01-31 14:02:08 +05:00
|
|
|
- bundle exec rake
|
2022-02-01 07:46:34 +05:00
|
|
|
|
|
|
|
rust_freebsd_task:
|
|
|
|
name: Rust (FreeBSD)
|
2022-06-03 22:51:20 +03:00
|
|
|
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BASE_BRANCH == 'master'
|
2022-02-01 08:27:53 +05:00
|
|
|
env:
|
|
|
|
RUSTFLAGS: '-L /usr/local/lib'
|
2022-02-01 07:46:34 +05:00
|
|
|
dependencies_script:
|
2022-06-10 08:23:03 +03:00
|
|
|
- pkg install --yes autoconf automake libtool
|
2022-02-01 07:46:34 +05:00
|
|
|
dependencies_rust_script:
|
2022-02-01 07:56:44 +05:00
|
|
|
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
2022-02-01 08:08:56 +05:00
|
|
|
main_build_script:
|
|
|
|
- ./autogen.sh
|
2022-06-13 19:28:00 +03:00
|
|
|
- ./configure --enable-debug CFLAGS='-O3'
|
2022-02-01 08:08:56 +05:00
|
|
|
- make
|
|
|
|
- sudo make install
|
|
|
|
rust_test_script:
|
2022-06-09 04:25:27 +03:00
|
|
|
- cd bindings/rust
|
2022-02-01 08:17:01 +05:00
|
|
|
- ~/.cargo/bin/cargo test
|
|
|
|
- ~/.cargo/bin/cargo clippy
|
|
|
|
- ~/.cargo/bin/cargo fmt --check
|