Commit 2021abf7 authored by Thomas Vincent's avatar Thomas Vincent

Remove unused files

parent 69213cc2
language: python
matrix:
include:
- python: 2.7
os: linux
env: BUILD_COMMAND=sdist
- python: 3.4
os: linux
env: BUILD_COMMAND=sdist
- python: 3.5
os: linux
env: BUILD_COMMAND=sdist
- language: generic
os: osx
env: BUILD_COMMAND=bdist_wheel
cache:
apt: true
addons:
apt:
packages:
- libhdf5-serial-1.8.4
- libhdf5-serial-dev
install:
# Mac OS X specific bootstrap
- source ./ci/travis_osx.sh
- travis_osx_install_begin
# Upgrade distribution modules
- pip install --upgrade setuptools
- pip install --upgrade pip
# Install build dependencies
- pip install wheel
- pip install --trusted-host www.edna-site.org --find-links http://www.edna-site.org/pub/wheelhouse/ numpy
# Print Python info
- python ./ci/info_platform.py
- pip freeze
# Generate source package or wheel
- python setup.py $BUILD_COMMAND
- ls dist
# Mac OS X specific cleanup
- travis_osx_install_end
script:
# Mac OS X specific bootstrap
- travis_osx_run_begin
# Upgrade distribution modules
- pip install --upgrade setuptools
- pip install --upgrade pip
# Install from source package
- pip install --pre --find-links dist/ --trusted-host www.edna-site.org --find-links http://www.edna-site.org/pub/wheelhouse/ xsocs
# Print Python info
- python ci/info_platform.py
- pip freeze
# Run the tests
- python run_tests.py
# Mac OS X specific cleanup
- travis_osx_run_end
os:
- Visual Studio 2015
cache:
- '%LOCALAPPDATA%\pip\Cache'
# fetch repository as zip archive
shallow_clone: true
environment:
global:
WIN_SDK_ROOT: "C:\\Program Files\\Microsoft SDKs\\Windows"
VENV_BUILD_DIR: "venv_build"
VENV_TEST_DIR: "venv_test"
matrix:
# Python 3.5
- PYTHON_DIR: "C:\\Python35-x64"
QT_BINDINGS: "PyQt5"
# Python 2.7
- PYTHON_DIR: "C:\\Python27-x64"
QT_BINDINGS: "PyQt4"
- PYTHON_DIR: "C:\\Python27-x64"
QT_BINDINGS: "PySide"
install:
# Add Python to PATH
- "SET PATH=%PYTHON_DIR%;%PYTHON_DIR%\\Scripts;%PATH%"
# Upgrade distribution modules
# Disabled as pip uprade fails
# - "pip install --upgrade setuptools"
# - "pip install --upgrade pip"
# Install virtualenv
- "pip install virtualenv"
- "virtualenv --version"
build_script:
# Create build virtualenv
- "virtualenv --clear %VENV_BUILD_DIR%"
- "%VENV_BUILD_DIR%\\Scripts\\activate.bat"
# Install buils dependencies
- "pip install wheel"
- "pip install --trusted-host www.edna-site.org --find-links http://www.edna-site.org/pub/wheelhouse/ numpy"
# Print Python info
- "python ci\\info_platform.py"
- "pip freeze"
# Build
- "python setup.py bdist_wheel bdist_msi"
- ps: "ls dist"
# Leave build virtualenv
- "%VENV_BUILD_DIR%\\Scripts\\deactivate.bat"
- "rmdir %VENV_BUILD_DIR% /s /q"
test_script:
# Create test virtualenv
- "virtualenv --clear %VENV_TEST_DIR%"
- "%VENV_TEST_DIR%\\Scripts\\activate.bat"
# Install Qt binding and matplotlib (until they are dependencies)
# Install PyQt4 from www.edna-site.org and PyQt5/PySide from pypi
- "pip install --pre --trusted-host www.edna-site.org --find-links http://www.edna-site.org/pub/wheelhouse/ %QT_BINDINGS%"
- "pip install matplotlib"
# Install the generated wheel package to test it
#- "pip install --pre --find-links dist/ --trusted-host www.edna-site.org --find-links http://www.edna-site.org/pub/wheelhouse/ xsocs"
# Print Python info
- "python ci\\info_platform.py"
- "pip freeze"
- "python run_tests.py"
# Leave test virtualenv
- "%VENV_TEST_DIR%\\Scripts\\deactivate.bat"
- "rmdir %VENV_TEST_DIR% /s /q"
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*
#!/bin/bash
# Script for travis-CI Mac OS X specific setup.
#
# It provides 4 functions:
# - travis_osx_install_begin: Install pip and setup a virtualenv for the build
# - travis_osx_install_end: Deactivate the build virtualenv
# - travis_osx_run_begin: Setup a virtualenv for the tests
# - travis_osx_run_end: Deactivate test virtualenv
#
# On Linux, those functions do nothing.
# Directory where to create build virtualenv
VENV_BUILD_DIR=./venv_build
# Directory qhere to create test virtualenv
VENV_TEST_DIR=./venv_test
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
function travis_osx_install_begin {
echo NoOp
}
function travis_osx_install_end {
echo NoOp
}
function travis_osx_run_begin {
echo NoOp
}
function travis_osx_run_end {
echo NoOp
}
else
function travis_osx_install_begin {
echo Mac OS X install begin: Install pip and setup build venv
set -x # echo on
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
pip install virtualenv --user
virtualenv --version
virtualenv --clear $VENV_BUILD_DIR
set +x # echo off
echo "Activate virtualenv $VENV_BUILD_DIR"
source $VENV_BUILD_DIR/bin/activate
}
function travis_osx_install_end {
echo Mac OS X install end: Deactivate and delete virtualenv
echo deactivate
deactivate
set -x # echo on
rm -rf $VENV_BUILD_DIR
set +x # echo off
}
function travis_osx_run_begin {
echo Mac OS X run begin: Setup test venv
set -x # echo on
virtualenv --clear $VENV_TEST_DIR
set +x # echo off
echo "Activate virtualenv $VENV_TEST_DIR"
source $VENV_TEST_DIR/bin/activate
}
function travis_osx_run_end {
echo Mac OS X run end: Deactivate and delete virtualenv
echo deactivate
deactivate
set -x # echo on
rm -rf $VENV_TEST_DIR
set +x # echo off
}
fi
machine:
python:
version: 2.7
checkout:
post:
# Clean-up to make sure we start from a fresh build env
- rm -rf dist/ build/
dependencies:
pre:
# Install deb packages
#- sudo apt-get update
- sudo apt-get install libhdf5-serial-1.8.4 libhdf5-serial-dev
# Upgrade distribution modules
- pip install --upgrade setuptools
- pip install --upgrade pip
# Install build dependencies
- pip install --upgrade wheel
- pip install --upgrade numpy cython
# Print Python info
- python ./ci/info_platform.py
- pip freeze
override:
# Build
- python setup.py sdist bdist_wheel
# Copy source tarball to artifacts
- cp dist/*.tar.gz $CIRCLE_ARTIFACTS
# Install generated wheel and its dependencies
- pip install --upgrade --pre --find-links dist/ xsocs
post:
# Clean-up
- python setup.py clean --all
# Uninstall xsocs before caching
# Hack to avoid caching installed package
- pip uninstall --yes xsocs
test:
pre:
# Install generated wheel
- pip install --pre --find-links dist/ xsocs
override:
# Print Python info
- python ci/info_platform.py
- pip freeze
# Run the tests
- python run_tests.py
This directory will hold the test suites for the scripts, i.e. integration tests
\ No newline at end of file
This directory contains tests data downloaded from internet.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment