-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
29 lines (29 loc) · 1.34 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
checkoutLocation: "./esp32-toolkit-lib"
workspaceLocation: "."
tasks:
- name: Workspace Setup
env:
PROJECT_ARTIFACT_URL: 'https://github.com/etienne1911/esp32-toolkit-lib/releases/download'
PROJECT_ARTIFACT_REL: 'r3'
PROJECT_ARTIFACT_NAME: 'pio-workspace-artifact' #esp32-pio-workspace
SCRIPTS_DIR: src/modules/pwa-tools/scripts/
init: |
echo 'retrieve and extract artifact'
wget $PROJECT_ARTIFACT_URL/$PROJECT_ARTIFACT_REL/$PROJECT_ARTIFACT_NAME.zip
echo 'done retrieving'
unzip ${PROJECT_ARTIFACT_NAME}.zip
echo 'done extracting'
pwd && ls -la
rm ${PROJECT_ARTIFACT_NAME}.zip # remove artifact file
# substitute artifact lib to use current repo instead
rm -rf lib/esp32-toolkit-lib/ && mv esp32-toolkit-lib/ lib/
# symlinks conf
ln -s lib/esp32-toolkit-lib/.config/platformio.ini platformio.ini
ln -s lib/esp32-toolkit-lib/.config/.gitmodules .gitmodules
ln -s lib/esp32-toolkit-lib/.config/scripts/replace_fs.py replace_fs.py
ln -s ../lib/esp32-toolkit-lib/examples/firmware-main.cpp src/main.cpp
command: |
python -m pip install --upgrade pip
pip install --upgrade platformio
cd /workspace
# rm src/main.cpp && ln -s lib/esp32-toolkit-lib/examples/firmware-base.cpp src/main.cpp && pio run