mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
refs #72, ci tesing for centos
This commit is contained in:
parent
d8abf146a4
commit
a9302df045
26
.cirrus.yml
26
.cirrus.yml
@ -1,7 +1,6 @@
|
|||||||
|
freebsd_task:
|
||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
image_family: freebsd-12-1
|
image_family: freebsd-12-1
|
||||||
|
|
||||||
task:
|
|
||||||
install_script: |
|
install_script: |
|
||||||
pkg install -y cmake
|
pkg install -y cmake
|
||||||
pw groupadd testgrp
|
pw groupadd testgrp
|
||||||
@ -11,3 +10,26 @@ task:
|
|||||||
sudo -u testuser .ci/unix-build.sh
|
sudo -u testuser .ci/unix-build.sh
|
||||||
test_script: |
|
test_script: |
|
||||||
sudo -u testuser .ci/unix-test.sh
|
sudo -u testuser .ci/unix-test.sh
|
||||||
|
|
||||||
|
centos7_task:
|
||||||
|
container:
|
||||||
|
image: centos:7
|
||||||
|
install_script: |
|
||||||
|
yum install -y centos-release-scl
|
||||||
|
yum install -y devtoolset-9
|
||||||
|
curl -L https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Linux-x86_64.tar.gz | tar xzvf - -C /usr/local --strip-components 1
|
||||||
|
build_script: |
|
||||||
|
source /opt/rh/devtoolset-9/enable && PATH=$PATH:/usr/local/bin .ci/unix-build.sh
|
||||||
|
test_script: |
|
||||||
|
source /opt/rh/devtoolset-9/enable && PATH=$PATH:/usr/local/bin .ci/unix-test.sh
|
||||||
|
|
||||||
|
centos8_task:
|
||||||
|
container:
|
||||||
|
image: centos:8
|
||||||
|
install_script: |
|
||||||
|
yum group install -y "Development Tools"
|
||||||
|
curl -L https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Linux-x86_64.tar.gz | tar xzvf - -C /usr/local --strip-components 1
|
||||||
|
build_script: |
|
||||||
|
PATH=$PATH:/usr/local/bin .ci/unix-build.sh
|
||||||
|
test_script: |
|
||||||
|
PATH=$PATH:/usr/local/bin .ci/unix-test.sh
|
@ -276,6 +276,11 @@ public:
|
|||||||
value_type* allocate(std::size_t n) { return static_cast<value_type*>(::operator new(n * sizeof(value_type))); }
|
value_type* allocate(std::size_t n) { return static_cast<value_type*>(::operator new(n * sizeof(value_type))); }
|
||||||
|
|
||||||
void deallocate(value_type* p, std::size_t) noexcept { ::operator delete(p); }
|
void deallocate(value_type* p, std::size_t) noexcept { ::operator delete(p); }
|
||||||
|
|
||||||
|
template<class U>
|
||||||
|
struct rebind {
|
||||||
|
typedef TestAllocator<U> other;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class T, class U>
|
template <class T, class U>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user