diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh deleted file mode 100644 index 314fbc07..00000000 --- a/ci/before_deploy.sh +++ /dev/null @@ -1,33 +0,0 @@ -# This script takes care of building your crate and packaging it for release - -set -ex - -main() { - local src=$(pwd) \ - stage= - - case $TRAVIS_OS_NAME in - linux) - stage=$(mktemp -d) - ;; - osx) - stage=$(mktemp -d -t tmp) - ;; - esac - - test -f Cargo.lock || cargo generate-lockfile - - # TODO Update this to build the artifacts that matter to you - cross build --release --target $TARGET - - # TODO Update this to package the right artifacts - cp target/$TARGET/release/sk $stage/ - - cd $stage - tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz * - cd $src - - rm -rf $stage -} - -main diff --git a/ci/install.sh b/ci/install.sh deleted file mode 100644 index 22ec0b68..00000000 --- a/ci/install.sh +++ /dev/null @@ -1,66 +0,0 @@ -set -ex - -main() { - local target= - if [ $TRAVIS_OS_NAME = linux ]; then - target=x86_64-unknown-linux-musl - sort=sort - else - target=x86_64-apple-darwin - sort=gsort # for `sort --sort-version`, from brew's coreutils. - fi - - # Builds for iOS are done on OSX, but require the specific target to be - # installed. - case $TARGET in - aarch64-apple-ios) - rustup target install aarch64-apple-ios - ;; - armv7-apple-ios) - rustup target install armv7-apple-ios - ;; - armv7s-apple-ios) - rustup target install armv7s-apple-ios - ;; - i386-apple-ios) - rustup target install i386-apple-ios - ;; - x86_64-apple-ios) - rustup target install x86_64-apple-ios - ;; - esac - - # This fetches latest stable release - local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \ - | cut -d/ -f3 \ - | grep -E '^v[0.1.0-9.]+$' \ - | $sort --version-sort \ - | tail -n1) - curl -LSfs https://japaric.github.io/trust/install.sh | \ - sh -s -- \ - --force \ - --git japaric/cross \ - --tag $tag \ - --target $target - - # For test - case $TARGET in - x86_64-unknown-linux-gnu|i686-unknown-linux-gnu) - python3 -V - tmux -V - sudo apt-get install -y zsh - stty cols 80 - ;; - x86_64-apple-darwin|i686-apple-darwin) - HOMEBREW_NO_AUTO_UPDATE=1 brew install tmux - HOMEBREW_NO_AUTO_UPDATE=1 brew install zsh - python -V - python3 -V - tmux -V - stty cols 80 - ;; - esac -} - -main - diff --git a/ci/script.sh b/ci/script.sh deleted file mode 100644 index da25522f..00000000 --- a/ci/script.sh +++ /dev/null @@ -1,30 +0,0 @@ -# This script takes care of testing -set -ex - -main() { - if [ ! -z $DISABLE_TESTS ]; then - return - fi - - cross test --release --target $TARGET - cross build --release --target $TARGET - mkdir -p target/release - cp target/$TARGET/release/sk target/release - - case $TARGET in - x86_64-unknown-linux-gnu|i686-unknown-linux-gnu|x86_64-unknown-linux-musl) - # run the integration test - tmux new "python3 test/test_skim.py &> out && touch ok" && cat out && [ -e ok ] - ;; - x86_64-apple-darwin|i686-apple-darwin) - # run the integration test - tmux new "python3 test/test_skim.py &> out && touch ok" && cat out && [ -e ok ] - ;; - *) - ;; - esac -} - -if [ -z $TRAVIS_TAG ]; then - main -fi