2019-04-26 09:57:49 +00:00
|
|
|
## CircleCI integration
|
|
|
|
|
|
|
|
### Docker images
|
|
|
|
|
|
|
|
The docker images are build locally on the developer machine:
|
|
|
|
|
|
|
|
```!sh
|
|
|
|
cd .circleci/docker/
|
|
|
|
|
2019-11-13 12:07:41 +00:00
|
|
|
docker build -t ethereum/solidity-buildpack-deps:ubuntu1904-<revision> -f Dockerfile.ubuntu1904 .
|
|
|
|
docker push ethereum/solidity-buildpack-deps:ubuntu1904-<revision>
|
2019-04-26 09:57:49 +00:00
|
|
|
```
|
|
|
|
|
2019-11-18 22:25:17 +00:00
|
|
|
The current revision is `2`.
|
2019-04-26 09:57:49 +00:00
|
|
|
|
2019-11-13 12:07:41 +00:00
|
|
|
Once the docker image has been built and pushed to Dockerhub, you can find it at:
|
2019-04-26 09:57:49 +00:00
|
|
|
|
2019-11-13 12:07:41 +00:00
|
|
|
https://hub.docker.com/r/ethereum/solidity-buildpack-deps:ubuntu1904-<revision>
|
|
|
|
|
|
|
|
where the image tag reflects the target OS and revision to build Solidity and run its tests on.
|
2019-08-14 10:42:35 +00:00
|
|
|
|
|
|
|
### Testing docker images locally
|
|
|
|
|
|
|
|
```!sh
|
|
|
|
cd solidity
|
|
|
|
# Mounts your local solidity directory in docker container for testing
|
2019-11-13 12:07:41 +00:00
|
|
|
docker run -v `pwd`:/src/solidity -ti ethereum/solidity-buildpack-deps:ubuntu1904-<revision> /bin/bash
|
2019-08-14 10:42:35 +00:00
|
|
|
cd /src/solidity
|
|
|
|
<commands_to_test_build_with_new_docker_image>
|
2019-11-13 12:07:41 +00:00
|
|
|
```
|