Skip to content

Commit 000dd14

Browse files
Merge pull request #68 from ci-group/circleci
CI fix
2 parents 87bb462 + b87c6f9 commit 000dd14

File tree

4 files changed

+17
-20
lines changed

4 files changed

+17
-20
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ jobs:
55
- image: circleci/python:3-stretch-node
66
steps:
77
- checkout
8+
- run: git submodule sync
9+
- run: git submodule update --init
810

911
- setup_remote_docker:
1012
docker_layer_caching: true

Dockerfile

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
1-
FROM ubuntu:bionic
1+
FROM cigroup/gazebo:gazebo10-revolve
22

33
# Dependencies
4-
RUN apt-get update && \
5-
apt-get install -y build-essential \
6-
libboost-all-dev \
4+
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
5+
build-essential \
76
cmake \
8-
curl \
9-
cppcheck \
10-
doxygen \
117
git \
12-
gsl-bin libgsl0-dev \
13-
mercurial \
14-
pkg-config \
15-
python \
8+
libgsl0-dev \
169
python3-pip \
1710
libyaml-cpp-dev \
18-
xsltproc \
1911
libcairo2-dev \
2012
graphviz \
21-
libgazebo9-dev \
22-
gazebo9 && \
13+
libeigen3-dev \
14+
libnlopt-dev && \
2315
apt-get clean && \
2416
rm -rf /var/lib/apt/lists/*
2517

docker/build_revolve.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ set -e
33

44
# Build Revolve
55
cd /revolve
6+
7+
# use version 10
8+
sed -i 's/ find_package(gazebo 9 REQUIRED)/ find_package(gazebo 10 REQUIRED)/g' cpprevolve/revolve/gazebo/CMakeLists.txt
9+
610
mkdir -p build && cd build
711
cmake .. -DCMAKE_BUILD_TYPE="Release"
812
make -j4

test_py/plasticonding/test_development.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class TestPlastiCoding(unittest.TestCase):
1111
def setUp(self):
1212
self.conf = pyrevolve.genotype.plasticoding.plasticoding.PlasticodingConfig()
13-
self.genotype = pyrevolve.genotype.plasticoding.plasticoding.initialization.random_initialization(self.conf)
13+
self.genotype = pyrevolve.genotype.plasticoding.plasticoding.initialization.random_initialization(self.conf, 176)
1414

1515
def test_development(self):
1616
robot = self.genotype.develop()
@@ -33,7 +33,7 @@ def test_read_write_file(self):
3333

3434
self.genotype.export_genotype(file1)
3535

36-
genotype2 = pyrevolve.genotype.plasticoding.plasticoding.Plasticoding(self.conf)
36+
genotype2 = pyrevolve.genotype.plasticoding.plasticoding.Plasticoding(self.conf, self.genotype.id)
3737
genotype2.id = self.genotype.id
3838
genotype2.load_genotype(file1)
3939
genotype2.export_genotype(file2)
@@ -47,8 +47,7 @@ def test_read_write_file(self):
4747
file2_txt.close()
4848

4949
def test_collision(self):
50-
genotype_180 = pyrevolve.genotype.plasticoding.plasticoding.Plasticoding(self.conf)
51-
genotype_180.id = "genotype{}".format(180)
50+
genotype_180 = pyrevolve.genotype.plasticoding.plasticoding.Plasticoding(self.conf, 180)
5251
genotype_180.load_genotype(os.path.join(LOCAL_FOLDER, 'genotype_180.txt'))
5352
robot = genotype_180.develop()
5453
robot.update_substrate(raise_for_intersections=True)
@@ -58,8 +57,8 @@ class Test176(unittest.TestCase):
5857
def setUp(self):
5958
self.conf = pyrevolve.genotype.plasticoding.plasticoding.PlasticodingConfig()
6059

61-
self.genotype = pyrevolve.genotype.plasticoding.plasticoding.Plasticoding(self.conf)
62-
self.genotype.id = "genotype{}".format(176)
60+
_id = 176
61+
self.genotype = pyrevolve.genotype.plasticoding.plasticoding.Plasticoding(self.conf, _id)
6362
self.genotype.load_genotype(os.path.join(LOCAL_FOLDER, 'genotype_176.txt'))
6463

6564
self.robot = self.genotype.develop()

0 commit comments

Comments
 (0)