Skip to content

Commit

Permalink
Merge pull request #157 from slaclab/ESCRYODET-446
Browse files Browse the repository at this point in the history
Update Rogue to version v4.5.1
  • Loading branch information
jesusvasquez333 authored Nov 7, 2019
2 parents 974a1d2 + a293e2b commit bac7bfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
22 changes: 6 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Test stage
- stage: test
name: "Unit Tests"
before_install:
install:
# Build the server docker
- cd docker/server/
- docker build --build-arg branch=$TRAVIS_BRANCH -t server_docker .
Expand All @@ -32,39 +32,29 @@ jobs:
- docker build --build-arg branch=$TRAVIS_BRANCH -t client_docker .
- cd -

before_script:
# Start the server container in the background
- |
docker run -dti --rm --name server \
--entrypoint bash \
-v ${TRAVIS_BUILD_DIR}:/root/pysmurf \
server_docker
# Start the client container in the background
- |
docker run -dti --rm --name client \
--entrypoint bash \
-v ${TRAVIS_BUILD_DIR}:/root/pysmurf \
client_docker
install:
# Try to build the C++ code in the sever container
- |
docker exec -w /root/pysmurf server \
/bin/bash -c "mkdir build; cd build; \
cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4"
script:
# Try to import the smurf module in the server container
- |
docker exec server \
/bin/bash -c "PYTHONPATH=/root/pysmurf/lib:/root/pysmurf/python:${PYTHPNPATH} \
python3 -c 'import rogue; import smurf;'"
/bin/bash -c "python3 -c 'import rogue; import smurf;'"
# Try to import the pysmurf's SmurfProcessor module in the server container
- |
docker exec server \
/bin/bash -c "PYTHONPATH=/root/pysmurf/lib:/root/pysmurf/python:${PYTHPNPATH} \
python3 -c 'import pysmurf.core.devices; \
/bin/bash -c "python3 -c 'import pysmurf.core.devices; \
s = pysmurf.core.devices.SmurfProcessor(name=\"\", description=\"\")'"
## TO DO ##
Expand All @@ -74,7 +64,7 @@ jobs:
# Try to import the pysmurf.client module in the client container
# - |
# docker exec client \
# /bin/bash -c "PYTHONPATH=/root/pysmurf/lib:/root/pysmurf/python:${PYTHPNPATH} \
# /bin/bash -c "PYTHONPATH=/root/pysmurf/lib:/root/pysmurf/python:${PYTHONPATH} \
# python3 -c 'import pysmurf.client'"

# Deployment stage for the server docker
Expand Down Expand Up @@ -115,4 +105,4 @@ jobs:
# Upload docker image (as tagged and latest version)
- docker push ${DOCKER_ORG_NAME}/${DOCKER_CLIENT_REPO};
- docker tag ${DOCKER_ORG_NAME}/${DOCKER_CLIENT_REPO} ${DOCKER_ORG_NAME}/${DOCKER_CLIENT_REPO}:${DOCKER_TAG};
- docker push ${DOCKER_ORG_NAME}/${DOCKER_CLIENT_REPO}:${DOCKER_TAG};
- docker push ${DOCKER_ORG_NAME}/${DOCKER_CLIENT_REPO}:${DOCKER_TAG};
2 changes: 1 addition & 1 deletion docker/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tidair/smurf-rogue:R2.2.0
FROM tidair/smurf-rogue:R2.3.0

# Install the SMURF PCIe card repository
WORKDIR /usr/local/src
Expand Down

0 comments on commit bac7bfa

Please sign in to comment.