Hack around different compiler names on FreeBSDdefault_compile_flags
.vscode/ | .vscode/ | ||||
.mypy_cache/ | .mypy_cache/ | ||||
_prebuilt/ | _prebuilt/ | ||||
.pytest_cache | |||||
.pytest_cache/ | |||||
.vagrant/ |
.SILENT: | .SILENT: | ||||
.PHONY: docs docs-server docs-watch docs-sync-server | |||||
.PHONY: \ | |||||
docs docs-server docs-watch docs-sync-server nix-ci linux-ci macos-ci \ | |||||
freebsd-ci | |||||
_invalid: | _invalid: | ||||
echo "Specify a target name to execute" | echo "Specify a target name to execute" | ||||
exit 1 | |||||
docs: | docs: | ||||
sphinx-build -b html \ | sphinx-build -b html \ | ||||
browser-sync start --server \ | browser-sync start --server \ | ||||
--reload-delay 300 \ | --reload-delay 300 \ | ||||
--watch **/*.html | --watch **/*.html | ||||
macos-ci: nix-ci | |||||
linux-ci: nix-ci | |||||
nix-ci: | |||||
python3 -u tools/ci.py \ | |||||
-B download \ | |||||
-T tools/gcc-9.dds \ | |||||
-T2 tools/gcc-9.jsonc | |||||
vagrant-freebsd-ci: | |||||
vagrant up freebsd11 | |||||
vagrant ssh freebsd11 -c '\ | |||||
cd /vagrant && \ | |||||
python3.7 tools/ci.py \ | |||||
-B build \ | |||||
-T tools/freebsd-gcc-9.dds \ | |||||
-T2 tools/freebsd-gcc-9.jsonc \ | |||||
' | |||||
vagrant scp freebsd11:/vagrant/_build/dds _build/dds-freebsd-x64 |
Vagrant.configure("2") do |config| | |||||
# Refer: https://docs.vagrantup.com. | |||||
config.vm.synced_folder ".", "/vagrant", | |||||
type: 'rsync', | |||||
rsync__exclude: ['_build/', '.mypy_cache/', '.pytest_cache/', '_prebuilt/'] | |||||
config.vm.define 'freebsd11' do |freebsd11| | |||||
freebsd11.vm.box = 'generic/freebsd11' | |||||
freebsd11.vm.provision 'shell', inline: <<-SHELL | |||||
set -eu | |||||
for package in python37 py37-pip ccache gcc9 gcc8 git; do | |||||
echo "Installing $package" | |||||
pkg install -qy $package | |||||
done | |||||
ln -fs g++9 /usr/local/bin/g++-9 | |||||
ln -fs gcc9 /usr/local/bin/gcc-9 | |||||
ln -fs g++8 /usr/local/bin/g++-8 | |||||
ln -fs gcc8 /usr/local/bin/gcc-8 | |||||
sudo -u vagrant pip install -q --user pytest pytest-xdist | |||||
SHELL | |||||
end | |||||
config.vm.provider 'virtualbox' do |vbox| | |||||
vbox.memory = 1024 * 4 | |||||
vbox.cpus = 8 | |||||
end | |||||
end |
BOOTSTRAP_PHASES = [ | BOOTSTRAP_PHASES = [ | ||||
BootstrapPhase('bootstrap-p1.1', 'g++8', 'cl.exe'), | |||||
BootstrapPhase('bootstrap-p4.2', 'g++8', 'cl.exe'), | |||||
BootstrapPhase('bootstrap-p5.2', 'g++9', 'cl.exe'), | |||||
BootstrapPhase('bootstrap-p1.1', 'g++-8', 'cl.exe'), | |||||
BootstrapPhase('bootstrap-p4.2', 'g++-8', 'cl.exe'), | |||||
BootstrapPhase('bootstrap-p5.2', 'g++-9', 'cl.exe'), | |||||
] | ] | ||||
HERE = Path(__file__).parent.absolute() | HERE = Path(__file__).parent.absolute() |