Skip to content

Commit

Permalink
Improve gitpod environment
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-07 committed Mar 26, 2022
1 parent e128455 commit 09d8faf
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM gitpod/workspace-full

ENV PATH ${PATH}:/workspace/clad/scripts
RUN sudo apt-get update && sudo apt-get -y install\
clang-10 libclang-10-dev llvm-10-tools llvm-10-dev &&\
sudo rm -rf /var/lib/apt/lists/*
RUN sudo -H pip install lit
USER root

ENV PATH ${PATH}:/workspace/clad/scripts:/workspace/scripts
RUN install-packages \
clang-10 libclang-10-dev llvm-10-tools llvm-10-dev \
tmux
RUN sudo -H pip install lit

USER gitpod
RUN wget -O "${HOME}/.tmux.conf" https://gist.github.com/parth-07/37c028e1862c3f23eee1335ba2e49d4a
RUN wget -O "${HOME}/.vimrc" https://gist.github.com/parth-07/184b3081fbe38eb81fdd1981f3603b6d
8 changes: 6 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ image:
file: .gitpod.dockerfile

tasks:
- name: "Build Clad for LLVM-10"
init: build_clad.sh 10
- name: "Initialise"
init: |
cp -r /workspace/clad/scripts /workspace/
build_clad.sh 10
mkdir .vscode
cp scripts/.vscode/* ./vscode/

17 changes: 17 additions & 0 deletions scripts/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/lib/llvm-10/include"
],
"defines": [],
"compilerPath": "/usr/bin/clang-10",
"cStandard": "c11",
"cppStandard": "c++14",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}
114 changes: 114 additions & 0 deletions scripts/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"cmake.configureOnOpen": false,
"workbench.editor.showTabs": true,
"files.associations": {
"*.tcc": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"list": "cpp",
"exception": "cpp",
"memory_resource": "cpp",
"random": "cpp",
"ratio": "cpp",
"utility": "cpp",
"initializer_list": "cpp",
"new": "cpp",
"typeinfo": "cpp",
"algorithm": "cpp",
"*.def": "cpp",
"NestedCalls.C": "cpp",
"functiontraits.h": "c",
"ArrayInputsReverseMode.C": "cpp",
"ArrayErrorsForwardMode.C": "cpp",
"Simple.C": "cpp",
"Functors.C": "cpp",
"ArrayInputsForwardMode.C": "cpp",
"Arrays.C": "cpp",
"RunDemos.C": "cpp",
"TemplateFunctors.C": "cpp",
"Loops.C": "cpp",
"FunctionsInNamespaces.C": "cpp",
"FunctionCalls.C": "cpp",
"NoNumDiff.C": "cpp",
"BasicOps.C": "cpp",
"GradientMultiArg.C": "cpp",
"NumDiff.C": "cpp",
"PureCentralDiffCalls.C": "cpp",
"UserDefinedPointers.C": "cpp",
"*.inc": "cpp",
"Gradients.C": "cpp",
"Jacobian.C": "cpp",
"BuiltinDerivatives.C": "cpp",
"TFormula.C": "cpp",
"Variables.C": "cpp",
"DiffInterface.C": "cpp",
"Hessians.C": "cpp",
"CallArguments.C": "cpp",
"MemberFunctions.C": "cpp",
"LoopsAndArrays.C": "cpp",
"LoopsAndArraysExec.C": "cpp",
"UserDefinedTypes.C": "cpp",
"FunctionCallsWithResults.C": "cpp",
"Assignments.C": "cpp",
"StructMethodCall.C": "cpp",
"BasicArithmeticAll.C": "cpp",
"DependencyTracking.C": "cpp",
"VirtualMethodsCall.C": "cpp",
"NonContinuous.C": "cpp",
"Pointers.C": "cpp",
"NotEnoughArgError.C": "cpp",
"ReferenceArguments.C": "cpp",
"ClassMethodCall.C": "cpp",
"Overloads.C": "cpp",
"FunctorErrors.C": "cpp",
"type_traits": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"bitset": "cpp",
"cinttypes": "cpp",
"cmath": "cpp",
"condition_variable": "cpp",
"cstring": "cpp",
"deque": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"numeric": "cpp",
"optional": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"fstream": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"ostream": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"Interface.C": "cpp",
"UnsupportedOpsWarn.C": "cpp",
"complex": "cpp"
},
"python.formatting.provider": "black"
}

0 comments on commit 09d8faf

Please sign in to comment.