-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #998 from Agoric/974-appveyor
add Appveyor CI to test agoric-sdk on WSL This takes about 15 minutes to run right now. closes #974
- Loading branch information
Showing
10 changed files
with
152 additions
and
1 deletion.
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,40 @@ | ||
# build+test under WSL (Windows Subsystem for Linux) | ||
# | ||
# WSL uses a Linux-ish kernel (apparently with modifications to talk to the | ||
# real windows kernel underneath). The Appveyor installation, at least, | ||
# defaults to an Ubuntu 18.04 "Bionic" userspace image, with a handful of | ||
# tools installed (but not build-essential). | ||
|
||
# The $PATH includes a bunch of windows directories, with things like Node.js | ||
# (version 8), yarn, Python, ruby, etc. None of which we use; I don't think | ||
# they're part of the normal WSL user's experience. | ||
|
||
# Commands added here as " - ps:" are run under PowerShell. Commands which | ||
# are run as " - ps: wsl -- XYZ" get run in a bash environment by the wsl | ||
# tool. In this environment, the exit code of XYZ is ignored (so failing | ||
# programs don't stop the build), but the build will halt with a failure if | ||
# anything is printed to stderr. We use the "./no-stderr" script to make this | ||
# behave more normally. The docs | ||
# (https://www.appveyor.com/docs/build-configuration/#interpreters-and-scripts) | ||
# suggest that putting `$ErrorActionPreference = "Stop";` at "the top of your | ||
# script" (i.e. your PowerShell script) might influence this. | ||
|
||
image: Visual Studio 2019 | ||
build: off | ||
|
||
# the worker clones the repo into the clone folder | ||
# (/mnt/c/projects/agoric-sdk), cds there, then runs each of the following | ||
# steps. Each step is run from /mnt/c/projects/agoric-sdk, even if it uses | ||
# 'cd' internally (i.e. each step is run in a separate shell). | ||
install: | ||
- ps: wsl -- .appveyor/no-stderr .appveyor/install-go.sh | ||
- ps: wsl -- .appveyor/no-stderr .appveyor/install-nvm.sh | ||
- ps: wsl -- .appveyor/no-stderr .appveyor/install-node-13.sh | ||
- ps: wsl -- .appveyor/no-stderr .appveyor/install-yarn.sh | ||
- ps: wsl -- .appveyor/no-stderr .appveyor/install-build-tools.sh | ||
|
||
build_script: | ||
- ps: wsl -- .appveyor/no-stderr .appveyor/build.sh | ||
|
||
test_script: | ||
- ps: wsl -- .appveyor/no-stderr .appveyor/test.sh |
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,15 @@ | ||
#!/bin/bash -ie | ||
|
||
export PATH="/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
echo "pwd is" | ||
pwd | ||
|
||
nvm use v13.11.0 | ||
echo "running nvm current" | ||
nvm current | ||
|
||
yarn | ||
|
||
yarn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash -ie | ||
|
||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
echo "pwd is" | ||
pwd | ||
|
||
cd ~ | ||
|
||
sudo apt update | ||
sudo apt install --yes build-essential make |
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,17 @@ | ||
#!/bin/bash -ie | ||
|
||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
echo "PWD was" | ||
pwd | ||
|
||
cd ~ | ||
echo "downloading golang installer" | ||
wget -q https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz | ||
|
||
echo "unpacking tarball" | ||
sudo tar -C /usr/local -xzf go1.14.2.linux-amd64.tar.gz | ||
|
||
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile | ||
|
||
echo "golang unpacked, PATH updated" |
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 -ie | ||
|
||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
echo "pwd is" | ||
pwd | ||
|
||
cd ~ | ||
|
||
echo "running nvm current" | ||
nvm current | ||
|
||
echo "running nvm use v13.11.0" | ||
nvm install v13.11.0 | ||
|
||
nvm use v13.11.0 | ||
|
||
echo "running nvm current" | ||
nvm current |
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,15 @@ | ||
#!/bin/bash -ie | ||
|
||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
echo "pwd is" | ||
pwd | ||
|
||
cd ~ | ||
|
||
echo "downloading NVM install.sh" | ||
wget -q https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | ||
|
||
echo "running NVM install.sh" | ||
bash install.sh | ||
echo "NVM install.sh done" $? |
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,14 @@ | ||
#!/bin/bash -ie | ||
|
||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
echo "pwd is" | ||
pwd | ||
|
||
cd ~ | ||
|
||
nvm use v13.11.0 | ||
echo "running nvm current" | ||
nvm current | ||
|
||
npm install -g yarn |
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,7 @@ | ||
#!/bin/bash -ie | ||
|
||
if "$@" 2>&1; then | ||
echo "command succeeded" | ||
else | ||
echo "command failed $?" >&2 | ||
fi |
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,13 @@ | ||
#!/bin/bash -ie | ||
|
||
export PATH="/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
|
||
echo "pwd is" | ||
pwd | ||
|
||
nvm use v13.11.0 | ||
echo "running nvm current" | ||
nvm current | ||
|
||
yarn test | ||
|
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