diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a16d4f863..000000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python - -python: - 3.6 -install: - pip install -r requirements.txt -script: -- python scripts/lint.py -- python scripts/readme.py -after_success: -- chmod +x .travis/push.sh -- .travis/push.sh -skip_cleanup : true -env: - global: - secure: hZJlqgOzA2zIUJSWIka0PylqNaTkfHq+kS48RrHmocrK0vLyCW7ECWrzez2f2RVdTNzPi0b+yJq2uCbFfWjImZqg+XY1I75/CVVdSYMk7PJkYZ/iBDixMYY8CAkRRd5yZft9uZAdZzR4KLCPN18n7qfISv/M9VA8989NKcVyiEU= diff --git a/.travis/push.sh b/.travis/push.sh deleted file mode 100755 index 9e54a9a66..000000000 --- a/.travis/push.sh +++ /dev/null @@ -1,28 +0,0 @@ -setup_git() { - git config --global user.email "mst10041967@gmail.com" - git config --global user.name "Rohit Tanwar" -} - -commit_website_files() { - if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then - if [ $TRAVIS_BRANCH == "master" ]; then - echo "Committing to master branch..." - git checkout master - git add -A - git commit -a --message="travis_commit" - fi - fi -} - -upload_files() { - if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then - if [ $TRAVIS_BRANCH == "master" ]; then - echo "Pushing to master branch..." - git push --force "https://${GH_TOKEN}@github.com/kriadmin/30-seconds-of-python-code.git" master - fi - fi -} - -setup_git -commit_website_files -upload_files