solidity/.circleci
chriseth 75a25d53c7
Merge pull request #8785 from ethereum/disco-to-focal
CircleCI: Change from Ubuntu Disco (19.04) to Ubuntu Focal (20.04) due to support EOL
2020-04-28 10:09:00 +02:00
..
docker Docker: install curl in ubuntu16.04 ossfuzz base image 2020-02-26 11:52:40 +01:00
config.yml Merge pull request #8785 from ethereum/disco-to-focal 2020-04-28 10:09:00 +02:00
osx_install_dependencies.sh Update evmone version to v0.4 in docs and scripts 2020-04-14 14:34:47 +02:00
README.md circleci: Use custom pipeline parameters per docker image revision in config 2020-02-20 11:34:49 +05:30
soltest_all.sh Set default EVM version to Istanbul. 2019-12-04 10:42:14 +01:00
soltest.sh [circleci] Add t_osx_soltest. 2019-11-08 14:44:54 -05:00

CircleCI integration

Docker images

The docker images are build locally on the developer machine:

cd .circleci/docker/

docker build -t ethereum/solidity-buildpack-deps:ubuntu1904-<revision> -f Dockerfile.ubuntu1904 .
docker push ethereum/solidity-buildpack-deps:ubuntu1904-<revision>

The current revisions per docker image are stored in circle ci pipeline parameters called <image-desc>-docker-image-rev (e.g., ubuntu-1904-docker-image-rev). Please update the value assigned to the parameter(s) corresponding to the docker image(s) being updated at the time of the update. Please verify that the value assigned to the parameter matches the revision part of the docker image tag (<revision> in the docker build/push snippet shown above). Otherwise, the docker image used by circle ci and the one actually pushed to docker hub will differ.

Once the docker image has been built and pushed to Dockerhub, you can find it at:

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.

Testing docker images locally

cd solidity
# Mounts your local solidity directory in docker container for testing
docker run -v `pwd`:/src/solidity -ti ethereum/solidity-buildpack-deps:ubuntu1904-<revision> /bin/bash
cd /src/solidity
<commands_to_test_build_with_new_docker_image>