diff --git a/.build-scripts/codecov.sh b/.build-scripts/codecov.sh deleted file mode 100755 index 293b04b..0000000 --- a/.build-scripts/codecov.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -xe - -wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz -tar xzf master.tar.gz -cd kcov-master -mkdir build -cd build -cmake .. -make -make install DESTDIR=../../kcov-build -cd ../.. -rm -rf kcov-master -for file in target/debug/lettre*[^\.d]; do - mkdir -p "target/cov/$(basename $file)" - ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file" -done -bash <(curl -s https://codecov.io/bash) -echo "Uploaded code coverage" \ No newline at end of file diff --git a/.build-scripts/site-upload.sh b/.build-scripts/site-upload.sh deleted file mode 100755 index d635880..0000000 --- a/.build-scripts/site-upload.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -xe - -cd website -make clean && make -echo "lettre.at" > _book/html/CNAME -sudo pip install ghp-import -ghp-import -n _book/html -git push -f https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 679d54f..4fda191 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -3,7 +3,7 @@ name: Website on: push: branches: - - master + - v0.9.x jobs: build-deploy: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9d0e1ab..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: rust -rust: -- stable -- beta -- nightly -- 1.36.0 -matrix: - allow_failures: - - rust: nightly -sudo: required -addons: - apt: - packages: - - postfix - - libcurl4-openssl-dev - - libelf-dev - - libdw-dev - - cmake - - gcc - - binutils-dev - - libiberty-dev -before_script: -- smtp-sink 2525 1000& -- sudo chgrp -R postdrop /var/spool/postfix/maildrop -script: -- cargo test --verbose --all --all-features -after_success: -- ./.build-scripts/codecov.sh -- '[ "$TRAVIS_RUST_VERSION" = "stable" ] && [ "$TRAVIS_BRANCH" = "v0.9.x" ] && [ $TRAVIS_PULL_REQUEST = false ] && ./.build-scripts/site-upload.sh' diff --git a/README.md b/README.md index 2a5bfaf..7610530 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **Lettre is a mailer library for Rust.** -[![Build Status](https://travis-ci.org/lettre/lettre.svg?branch=master)](https://travis-ci.org/lettre/lettre) +![](https://github.com/lettre/lettre/workflows/.github/workflows/test.yml/badge.svg) [![Build status](https://ci.appveyor.com/api/projects/status/mpwglemugjtkps2d/branch/master?svg=true)](https://ci.appveyor.com/project/amousset/lettre/branch/master) [![Coverage Status](https://coveralls.io/repos/github/lettre/lettre/badge.svg?branch=master)](https://coveralls.io/github/lettre/lettre?branch=master)