From b07de55a28561b2a9158b13484efa09d71dc2719 Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Thu, 27 Jun 2019 17:49:36 -0700 Subject: [PATCH] Travis Github Pages configuration --- .gitignore | 5 +++++ .travis.yml | 25 ++++++++++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 23ec656..5d23a7d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,8 @@ # Libraries don't need dependency lock # Dependencies will be locked in application that uses them /shard.lock + +/docs/ +/build/libsodium/ +/build/libsodium-* +libsodium_install.out diff --git a/.travis.yml b/.travis.yml index 6be444c..fb8e068 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,25 @@ -sudo: true language: crystal os: - - linux -# - osx - +- linux +- osx install: - - COX_BUILD_DEBUG=1 LIBSODIUM_BUILD_DIR=$HOME/libsodium ./build/libsodium_install.sh +- COX_BUILD_DEBUG=1 LIBSODIUM_BUILD_DIR=$HOME/libsodium ./build/libsodium_install.sh before_script: - - export LIBSODIUM_BUILD_DIR=$HOME/libsodium +- export LIBSODIUM_BUILD_DIR=$HOME/libsodium after_failure: - - "[ -f libsodium_install.out ] && cat libsodium_install.out" +- "[ -f libsodium_install.out ] && cat libsodium_install.out" cache: directories: - - "$HOME/libsodium" - + - "$HOME/libsodium" +script: +- crystal spec +- crystal tool format --check +- crystal docs +deploy: + provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN + local_dir: docs #addons: # apt: # packages: @@ -21,3 +27,4 @@ cache: # homebrew: # packages: # - libsodium # takes forever +