forked from headmelted/codebuilds
-
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.
- Loading branch information
1 parent
2e1cc7b
commit a3c58ab
Showing
9 changed files
with
91 additions
and
114 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
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
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
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,9 @@ | ||
#!/bin/bash | ||
set -e; | ||
|
||
export LABEL=amd64_linux | ||
export ARCH=amd64 | ||
export GPP_COMPILER=g++-4.9 | ||
export GCC_COMPILER=gcc-4.9 | ||
export VSCODE_ELECTRON_PLATFORM=x64 | ||
export PACKAGE_ARCH=x64 |
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,18 @@ | ||
#!/bin/bash | ||
set -e; | ||
|
||
export LABEL=arm64_linux; | ||
export CROSS_TOOLCHAIN=true; | ||
export ARCH=arm64; | ||
export NPM_ARCH=arm; | ||
export GNU_TRIPLET=aarch64-linux-gnu; | ||
export GNU_MULTILIB_TRIPLET=arm-linux-gnueabihf; | ||
export GPP_COMPILER=aarch64-linux-gnu-g++; | ||
export GCC_COMPILER=aarch64-linux-gnu-gcc; | ||
export VSCODE_ELECTRON_PLATFORM=arm; | ||
export PACKAGE_ARCH=arm64; | ||
export QEMU_ARCH=aarch64; | ||
export QEMU_IMAGE="https://dl.armbian.com/odroidc2/Ubuntu_xenial_default.7z"; | ||
export QEMU_KERNEL="Image"; | ||
export QEMU_DTB="meson64_odroidc2.dtb"; | ||
export QEMU_MACHINE="virt"; |
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,19 @@ | ||
#!/bin/bash | ||
set -e; | ||
|
||
export LABEL=armhf_linux; | ||
export CROSS_TOOLCHAIN=true; | ||
export ARCH=armhf; | ||
export NPM_ARCH=arm; | ||
export GNU_TRIPLET=arm-linux-gnueabihf; | ||
export GNU_MULTILIB_TRIPLET=arm-linux-gnueabihf; | ||
export GPP_COMPILER=arm-linux-gnueabihf-g++; | ||
export GCC_COMPILER=arm-linux-gnueabihf-gcc; | ||
export VSCODE_ELECTRON_PLATFORM=arm; | ||
export PACKAGE_ARCH=armhf; | ||
export QEMU_ARCH=arm; | ||
export QEMU_ARCHIVE="http://archive.raspbian.org/raspbian"; | ||
export QEMU_IMAGE="https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-04-10/2017-04-10-raspbian-jessie-lite.zip"; | ||
export QEMU_KERNEL="kernel7.img"; | ||
export QEMU_DTB="bcm2709-rpi-2-b.dtb"; | ||
export QEMU_MACHINE="raspi2"; |
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
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 |
---|---|---|
@@ -1,23 +1,22 @@ | ||
#!/bin/bash | ||
set -e; | ||
|
||
if [ ! -d /workspace/.nvm ]; then | ||
echo "Removing old nvm if it exists..."; | ||
rm -rf .nvm; | ||
|
||
echo "Installing nvm..." | ||
git submodule update --init --recursive; | ||
git clone --depth 1 https://github.com/creationix/nvm.git /workspace/.nvm; | ||
. /workspace/.nvm/nvm.sh; | ||
nvm install 7.4.0; | ||
nvm use 7.4.0; | ||
echo "Installing nvm..." | ||
git submodule update --init --recursive; | ||
git clone --depth 1 https://github.com/creationix/nvm.git .nvm; | ||
. ./.nvm/nvm.sh; | ||
nvm install 7.4.0; | ||
nvm use 7.4.0; | ||
nvm alias default 7.4.0; | ||
|
||
echo "Setting python binding..."; | ||
npm config set python `which python`; | ||
echo "Setting python binding..."; | ||
npm config set python `which python`; | ||
|
||
echo "Installing gulp..."; | ||
npm install -g gulp; | ||
|
||
else | ||
echo "Installing npm dependencies..."; | ||
npm install -g gulp @emmetio/node; | ||
|
||
echo "nvm already exists, skipping..."; | ||
|
||
fi; | ||
echo "Installing local emmetio/node..."; | ||
npm install @emmetio/node; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
set -e; | ||
|
||
. /workspace/codebuilds-tools/setup_nvm.sh; | ||
. /workspace/codebuilds-tools/install_package_and_test.sh; | ||
. ./codebuilds-tools/setup_nvm.sh; | ||
. ./codebuilds-tools/install_package_and_test.sh; |