Skip to content

Commit

Permalink
feat: Merge pull request #7 from 6RiverSystems/feat/lingering_http_re…
Browse files Browse the repository at this point in the history
…quest

Feat/lingering http request MOVEMENT-1422
  • Loading branch information
mbittarelli6river authored Dec 17, 2020
2 parents e85bccb + cf482d2 commit a15f4d5
Show file tree
Hide file tree
Showing 16 changed files with 330 additions and 179 deletions.
40 changes: 39 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

publish:
docker:
- image: node:8.12.0
- image: circleci/node:8.12.0
steps:
- attach_workspace:
at: ./
Expand All @@ -36,14 +36,52 @@ jobs:
- run:
name: npm publish
command: npm publish
test:
docker:
- image: ros:kinetic-ros-core-xenial
environment:
NODE_ENV: test
CMAKE_PREFIX_PATH: /opt/ros/kinetic
ROS_PACKAGE_PATH: /opt/ros/kinetic/share
steps:
- attach_workspace:
at: ./
- run:
name: setup node and run tests
command: |
sudo apt update &&\
sudo apt install -q -y curl &&\
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh -o ~/install_nvm.sh &&\
bash ~/install_nvm.sh &&\
echo "sourcing .profile" &&\
source ~/.profile &&\
echo "sourcing .bashrc" &&\
source ~/.bashrc &&\
echo "nvm setup done"
echo "set env var" &&\
export NVM_DIR="$HOME/.nvm" &&\
echo "run nvm script" &&\
source ~/.nvm/nvm.sh &&\
echo "try install node" &&\
echo "run bash completion" &&\
source ~/.nvm/bash_completion &&\
echo "install node" &&\
nvm install 8.12.0 &&\
echo "run tests" &&\
npm run test
workflows:
version: 2
build:
jobs:
- build:
context: 6rs-circle
- test:
context: 6rs-circle
requires:
- build
- publish:
context: 6rs-circle
requires:
- build
- test
Loading

0 comments on commit a15f4d5

Please sign in to comment.