-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix system time in underlying leap image
docker dev environment eliminate unneeded tests clean-up
- Loading branch information
Showing
17 changed files
with
308 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Ubuntu 18.04 | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
- "release/*" | ||
pull_request: | ||
types: [assigned, opened, synchronize, reopened, labeled] | ||
jobs: | ||
ubuntu-1804-test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Tests | ||
run: | | ||
make dev-docker-all |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,37 @@ | ||
CMAKE_CPU_SETUP := $(shell expr $(shell getconf _NPROCESSORS_ONLN) + 2) | ||
DEV_VERSION=latest | ||
DEV_DOCKER_IMAGE=waxteam/dev:$(DEV_VERSION) | ||
DEV_DOCKER_CONTAINER=contracts-development | ||
DEV_DOCKER_COMMON=-v `pwd`:/opt/contracts \ | ||
--name $(DEV_DOCKER_CONTAINER) -w /opt/contracts $(DEV_DOCKER_IMAGE) | ||
|
||
DOCKER_CONTAINER=contracts-development | ||
|
||
DOCKER_COMMON=-v `pwd`:/opt/contracts \ | ||
--name $(DOCKER_CONTAINER) -w /opt/contracts waxteam/dev:wax-1.6.1-1.0.0 | ||
get-latest: | ||
docker pull $(DEV_DOCKER_IMAGE) | ||
|
||
build: | ||
mkdir -p build | ||
cd build && cmake .. | ||
cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON -Dleap_DIR="${LEAP_BUILD_PATH}/lib/cmake/leap" -Dcdt_DIR="${CDT_BUILD_PATH}/lib/cmake/cdt" -DBOOST_ROOT="${HOME}/boost1.79" .. | ||
|
||
.PHONY: compile | ||
compile: build | ||
cd build && make -j$(CMAKE_CPU_SETUP) | ||
cd build && make -j $(nproc) | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build | ||
-rm -rf build | ||
|
||
.PHONY: test | ||
test: compile | ||
./build/tests/unit_test --log_level=all | ||
|
||
.PHONY:dev-docker-stop | ||
dev-docker-stop: | ||
-docker rm -f $(DOCKER_CONTAINER) | ||
-docker rm -f $(DEV_DOCKER_CONTAINER) | ||
|
||
.PHONY:dev-docker-start | ||
dev-docker-start: dev-docker-stop | ||
docker run -it $(DOCKER_COMMON) bash | ||
dev-docker-start: dev-docker-stop get-latest | ||
docker run -it $(DEV_DOCKER_COMMON) bash | ||
|
||
# Useful for wax-docker project | ||
# Useful for travis CI | ||
.PHONY:dev-docker-all | ||
dev-docker-all: dev-docker-stop | ||
docker run --user $(shell id -u):$(shell id -g) $(DOCKER_COMMON) bash -c "\ | ||
rm -rf build && \ | ||
cmake . -B./build -GNinja && \ | ||
cmake --build ./build && \ | ||
build/tests/unit_test --show_progress" | ||
dev-docker-all: dev-docker-stop get-latest | ||
docker run $(DEV_DOCKER_COMMON) bash -c "make clean test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG leap_version=latest | ||
|
||
################################################################################ | ||
FROM waxteam/leap:${leap_version} | ||
ARG deps_dir=. | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
build-essential \ | ||
clang \ | ||
cmake \ | ||
git \ | ||
libxml2-dev \ | ||
opam ocaml-interp \ | ||
python3 \ | ||
python3-pip \ | ||
time && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
python3 -m pip install pygments | ||
|
||
WORKDIR /tmp/cdt | ||
COPY ${deps_dir}/cdt . | ||
ENV leap_DIR=/tmp/leap/build/lib/cmake/leap | ||
RUN mkdir build && \ | ||
cd build && \ | ||
cmake -DBOOST_ROOT=$HOME/boost1.79 .. && \ | ||
make -j $(nproc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARG cdt_version=latest | ||
|
||
################################################################################ | ||
FROM waxteam/cdt:${cdt_version} | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
make && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV CDT_BUILD_PATH=/tmp/cdt/build | ||
ENV LEAP_BUILD_PATH=/tmp/cdt/leap |
Oops, something went wrong.