build: move scripts to scripts dir

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-01-07 22:34:41 +02:00
parent b32d307452
commit ba8ca7319d
8 changed files with 27 additions and 10 deletions
+4 -4
View File
@@ -44,14 +44,14 @@ install:
- printf "[default]\naws_access_key_id = $AWS_ACCESS_KEY_ID\naws_secret_access_key = $AWS_SECRET_ACCESS_KEY\n" > ~/.aws/credentials
- printf "[default]\n" > ~/.aws/config
before_script:
- bash ./ci/before_script.sh
- bash ./scripts/ci/before_script.sh
script:
- ./unittests.sh
- ./functests.sh
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./build_macos.sh; else ./build_linux.sh; fi
- ./build_package.sh
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./scripts/build_macos.sh; else ./scripts/build_linux.sh; fi
- ./scripts/build_package.sh
after_script:
- bash ./ci/after_scripts.sh
- bash ./scripts/ci/after_scripts.sh
deploy:
condition: "[[ $(python -c 'import sys; print(sys.version_info[0])') == '2' ]]"
provider: releases
-6
View File
@@ -1,6 +0,0 @@
#!/bin/bash
set -e
python setup.py sdist
python setup.py bdist_wheel --universal
@@ -11,6 +11,11 @@ print_error()
echo -e "\e[31m$1\e[0m"
}
if [ ! -d "dvc" ]; then
print_error "Please run this script from repository root"
exit 1
fi
trap 'print_error "FAIL"; exit 1' ERR
print_info()
@@ -11,6 +11,11 @@ print_error()
echo -e "\e[31m$1\e[0m"
}
if [ ! -d "dvc" ]; then
print_error "Please run this script from repository root"
exit 1
fi
trap 'print_error "FAIL"; exit 1' ERR
print_info()
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
set -e
if [ ! -d "dvc" ]; then
echo "Please run this script from repository root"
exit 1
fi
python setup.py sdist
python setup.py bdist_wheel --universal
@@ -2,6 +2,8 @@
echo ====== Starting to build dvc installer for Windows... ======
if not exist dvc\NUL (echo Error: Please run this script from repository root && goto :error)
rmdir /Q /S build
rmdir /Q /S dist
del /Q /S dvc.spec