committed by
							
								
								GitHub
							
						
					
				
				 1 changed files with 113 additions and 0 deletions
			
			
		@ -0,0 +1,113 @@ | 
				
			|||||
 | 
					version: 2.0 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					jobs: | 
				
			||||
 | 
					  build_pypi: | 
				
			||||
 | 
					    docker: | 
				
			||||
 | 
					      - image: circleci/python:3.9.1 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    working_directory: ~/daal4py-ci | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    steps: | 
				
			||||
 | 
					      - checkout | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Setting up build environment | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            ls -la | 
				
			||||
 | 
					            source ./.circleci/setup_env.sh | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Building daal4py | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            . ~/miniconda/etc/profile.d/conda.sh | 
				
			||||
 | 
					            conda activate bld | 
				
			||||
 | 
					            export DALROOT=$CONDA_PREFIX | 
				
			||||
 | 
					            export NO_DIST=1 | 
				
			||||
 | 
					            python setup.py install --single-version-externally-managed --record=record.txt | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Building sklearnex | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            . ~/miniconda/etc/profile.d/conda.sh | 
				
			||||
 | 
					            conda activate bld | 
				
			||||
 | 
					            python setup_sklearnex.py install --single-version-externally-managed --record=record1.txt | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Testing sklearn patches | 
				
			||||
 | 
					          no_output_timeout: 20m | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            export PATH=~/miniconda/bin:$PATH | 
				
			||||
 | 
					            . ~/miniconda/etc/profile.d/conda.sh | 
				
			||||
 | 
					            conda activate bld | 
				
			||||
 | 
					            pip install -q scikit-learn | 
				
			||||
 | 
					            conda list | 
				
			||||
 | 
					            source ./.circleci/run_and_compare.sh ~/daal4py-ci /tmp/patched_and_unpatched_sklearn_pypi_pytest_logs_sklearnex.tar.bz2 sklearnex skex | 
				
			||||
 | 
					      - store_artifacts: | 
				
			||||
 | 
					          path: /tmp/patched_and_unpatched_sklearn_pypi_pytest_logs_sklearnex.tar.bz2 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  build_master: | 
				
			||||
 | 
					    docker: | 
				
			||||
 | 
					      - image: circleci/python:3.9.1 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    working_directory: ~/daal4py-ci | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    steps: | 
				
			||||
 | 
					      - checkout | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Checkout master | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            git fetch --all | 
				
			||||
 | 
					            git checkout master | 
				
			||||
 | 
					            git reset --hard origin/master | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Setting up build environment | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            ls -la | 
				
			||||
 | 
					            source ./.circleci/setup_env.sh | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Building daal4py | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            . ~/miniconda/etc/profile.d/conda.sh | 
				
			||||
 | 
					            conda activate bld | 
				
			||||
 | 
					            export DALROOT=$CONDA_PREFIX | 
				
			||||
 | 
					            export NO_DIST=1 | 
				
			||||
 | 
					            python setup.py install --single-version-externally-managed --record=record.txt | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Building sklearnex | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            . ~/miniconda/etc/profile.d/conda.sh | 
				
			||||
 | 
					            conda activate bld | 
				
			||||
 | 
					            python setup_sklearnex.py install --single-version-externally-managed --record=record1.txt | 
				
			||||
 | 
					      - run: | 
				
			||||
 | 
					          name: Testing sklearn patches | 
				
			||||
 | 
					          no_output_timeout: 20m | 
				
			||||
 | 
					          command: | | 
				
			||||
 | 
					            export PATH=~/miniconda/bin:$PATH | 
				
			||||
 | 
					            . ~/miniconda/etc/profile.d/conda.sh | 
				
			||||
 | 
					            conda activate bld | 
				
			||||
 | 
					            conda install -y -c conda-forge threadpoolctl cython | 
				
			||||
 | 
					            git clone https://github.com/scikit-learn/scikit-learn.git | 
				
			||||
 | 
					            pwd | 
				
			||||
 | 
					            pushd scikit-learn && python setup.py install && popd | 
				
			||||
 | 
					            pwd | 
				
			||||
 | 
					            conda list | 
				
			||||
 | 
					            source ./.circleci/run_and_compare.sh ~/daal4py-ci /tmp/patched_and_unpatched_sklearn_master_pytest_logs_sklearnex.tar.bz2 sklearnex skex | 
				
			||||
 | 
					      - store_artifacts: | 
				
			||||
 | 
					          path: /tmp/patched_and_unpatched_sklearn_master_pytest_logs_sklearnex.tar.bz2 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					workflows: | 
				
			||||
 | 
					  version: 2 | 
				
			||||
 | 
					  commit: | 
				
			||||
 | 
					    jobs: | 
				
			||||
 | 
					      - build_pypi: | 
				
			||||
 | 
					          filters: | 
				
			||||
 | 
					            branches: | 
				
			||||
 | 
					              ignore: test-sklearn-master | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  nightly: | 
				
			||||
 | 
					    triggers: | 
				
			||||
 | 
					      - schedule: | 
				
			||||
 | 
					          cron: "49 23 * * *" | 
				
			||||
 | 
					          filters: | 
				
			||||
 | 
					            branches: | 
				
			||||
 | 
					              only: test-sklearn-master | 
				
			||||
 | 
					    jobs: | 
				
			||||
 | 
					      - build_master | 
				
			||||
 | 
					   | 
				
			||||
					Loading…
					
					
				
		Reference in new issue