diff --git a/.genignore b/.genignore new file mode 100644 index 0000000..4fe5fd0 --- /dev/null +++ b/.genignore @@ -0,0 +1 @@ +meta/ diff --git a/meta/README.md b/meta/README.md new file mode 100644 index 0000000..4749396 --- /dev/null +++ b/meta/README.md @@ -0,0 +1,4 @@ +# The meta folder + +This folder is ignored via the `.genignore` file. It contains meta files +that should not make it into the generated project. diff --git a/meta/appveyor.yml b/meta/appveyor.yml new file mode 100644 index 0000000..fd5e32e --- /dev/null +++ b/meta/appveyor.yml @@ -0,0 +1,36 @@ +# This CI configuration tests the cosmwasm-template repository itself, +# not the resulting project. We want to ensure that +# 1. the template to project generation works +# 2. the template files are up to date +# +# We chose Appveyor for this task as it allows us to use an arbitrary config +# location. Furthermore it allows us to ship a Circle CI and Travis config +# generated for the resulting project. + +environment: + matrix: + - TARGET: x86_64-pc-windows-msvc + CHANNEL: stable + - TARGET: x86_64-pc-windows-msvc + CHANNEL: nightly + +install: + - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe + - rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y + - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - rustc --version + - cargo --version + - cargo install cargo-generate --features vendored-openssl + +build_script: + - cargo generate --git . --name TestGenerationInCi + - dir + - cd TestGenerationInCi + - cargo unit-test + - cargo wasm + - cargo test + - cargo schema + - cd .. + +after_build: + - git status