diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 3f98ab2178..4f1fa66deb 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -6,4 +6,9 @@ RUN sudo apt-get update && \ sudo apt-get install -y \ libssl-dev \ libxcb-composite0-dev \ - pkg-config + pkg-config \ + libpython3.6 \ + rust-lldb \ + && sudo rm -rf /var/lib/apt/lists/* + +ENV RUST_LLDB=/usr/bin/lldb-8 diff --git a/.gitpod.yml b/.gitpod.yml index baaa86c5a0..7efea7b6c2 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,23 +1,19 @@ image: file: .gitpod.Dockerfile tasks: - - init: cargo install --path . --force --features=stable + - name: Clippy + init: cargo clippy --all --features=stable -- -D clippy::result_unwrap_used -D clippy::option_unwrap_used + - name: Testing + init: cargo test --all --features=stable,test-bins + - name: Build + init: cargo build --features=stable + - name: Nu + init: cargo install --path . --features=stable command: nu github: prebuilds: - # enable for the master/default branch (defaults to true) - master: true - # enable for all branches in this repo (defaults to false) branches: true - # enable for pull requests coming from this repo (defaults to true) - pullRequests: true - # enable for pull requests coming from forks (defaults to false) pullRequestsFromForks: true - # add a "Review in Gitpod" button as a comment to pull requests (defaults to true) - addComment: true - # add a "Review in Gitpod" button to pull requests (defaults to false) - addBadge: false - # add a label once the prebuild is ready to pull requests (defaults to false) addLabel: prebuilt-in-gitpod vscode: extensions: @@ -25,5 +21,5 @@ vscode: - Swellaby.vscode-rust-test-adapter@0.11.0:Xg+YeZZQiVpVUsIkH+uiiw== - serayuzgur.crates@0.4.7:HMkoguLcXp9M3ud7ac3eIw== - belfz.search-crates-io@1.2.1:kSLnyrOhXtYPjQpKnMr4eQ== - - vadimcn.vscode-lldb@1.4.5:lwHCNwtm0kmOBXeQUIPGMQ== - bungcip.better-toml@0.3.2:3QfgGxxYtGHfJKQU7H0nEw== + - webfreak.debug@0.24.0:1zVcRsAhewYEX3/A9xjMNw== diff --git a/.theia/launch.json b/.theia/launch.json new file mode 100644 index 0000000000..e89436a486 --- /dev/null +++ b/.theia/launch.json @@ -0,0 +1,14 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "gdb", + "request": "launch", + "name": "Debug Rust Code", + "preLaunchTask": "cargo", + "target": "${workspaceFolder}/target/debug/nu", + "cwd": "${workspaceFolder}", + "valuesFormatting": "parseText" + } + ] +} diff --git a/.theia/tasks.json b/.theia/tasks.json new file mode 100644 index 0000000000..ea0f23fcf0 --- /dev/null +++ b/.theia/tasks.json @@ -0,0 +1,12 @@ +{ + "tasks": [ + { + "command": "cargo", + "args": [ + "build" + ], + "type": "process", + "label": "cargo", + } + ], +}