Browse Source

Merge pull request #7051 from jtpio/rename-travis

Remove reference to Travis CI
Steven Silvester 5 years ago
parent
commit
8f16ca85fb

+ 2 - 7
azure-pipelines.yml

@@ -30,13 +30,13 @@ jobs:
         displayName: 'install'
         inputs:
           targetType: 'filePath'
-          filePath: ./scripts/travis_install.sh
+          filePath: ./scripts/ci_install.sh
       - script: python -m pip install virtualenv
       - task: Bash@3
         displayName: 'script'
         inputs:
           targetType: 'filePath'
-          filePath: ./scripts/travis_script.sh
+          filePath: ./scripts/ci_script.sh
       - task: PublishTestResults@2
         displayName: 'publish test results'
         condition: variables['testResultsFiles']
@@ -44,11 +44,6 @@ jobs:
           testResultsFiles: '$(testResultsFiles)'
           testRunTitle: 'Linux - $(group)'
           mergeTestResults: true
-      - task: Bash@3
-        displayName: 'after_success'
-        inputs:
-          targetType: 'filePath'
-          filePath: ./scripts/travis_after_success.sh
 
   - job: 'Windows'
     pool:

+ 0 - 17
packages/services/scripts/travis_after_success.sh

@@ -1,17 +0,0 @@
-#!/bin/bash
-if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" ]]
-then
-    echo "-- pushing docs --"
-
-    ( cd docs 
-    git init
-    git config user.email "travis@travis-ci.com"
-    git config user.name "Travis Bot"
-
-    git add .
-    git commit -m "Deployed to GitHub Pages"
-    git push --force --quiet "https://${GHTOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
-    )
-else
-    echo "-- will only push docs from master --"
-fi

+ 0 - 23
packages/services/scripts/travis_install.sh

@@ -1,23 +0,0 @@
-#!/bin/bash
-set -ex
-npm install
-wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
-bash miniconda.sh -b -p $HOME/miniconda
-export PATH="$HOME/miniconda/bin:$PATH"
-hash -r
-conda config --set always_yes yes --set changeps1 no
-conda update -q conda
-conda info -a
-conda install pip pyzmq
-
-if [[ $TRAVIS_NODE_VERSION == "0.12" ]]; then
-    conda install notebook
-else 
-    # Install the development version of the notebook
-    git clone https://github.com/jupyter/notebook
-    cd notebook
-    pip install --pre -v -e .
-fi
-
-# Create jupyter base dir (needed for config retrieval).
-mkdir ~/.jupyter

+ 0 - 20
packages/services/scripts/travis_script.sh

@@ -1,20 +0,0 @@
-#!/bin/bash
-set -ex
-export DISPLAY=:99.0
-sh -e /etc/init.d/xvfb start || true
-
-npm run clean
-npm run build
-npm run build:examples
-npm test
-npm run test:coverage
-export PATH="$HOME/miniconda/bin:$PATH"
-npm run test:integration
-
-pushd examples/node
-python main.py 
-popd
-
-if [[ $TRAVIS_NODE_VERSION == "5.1" ]]; then    
-    npm run docs
-fi

+ 1 - 1
scripts/travis_install.sh → scripts/ci_install.sh

@@ -6,7 +6,7 @@ set -ex
 set -o pipefail
 
 # Building should work without yarn installed globally, so uninstall the
-# global yarn that Travis installs automatically.
+# global yarn installed by default.
 sudo rm -rf $(which yarn)
 ! yarn
 

+ 0 - 0
scripts/travis_script.sh → scripts/ci_script.sh


+ 0 - 24
scripts/travis_after_success.sh

@@ -1,24 +0,0 @@
-#!/bin/bash
-
-# Copyright (c) Jupyter Development Team.
-# Distributed under the terms of the Modified BSD License.
-set -ex
-set -o pipefail
-
-if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" && $GROUP == "docs" ]]
-then
-    echo "-- pushing docs --"
-
-    ( cd docs/api
-    git init
-    git config user.email "travis@travis-ci.com"
-    git config user.name "Travis Bot"
-
-    touch .nojekyll  # disable jekyll
-    git add .
-    git commit -m "Deploy to GitHub Pages"
-    git push --force --quiet "https://${GHTOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
-    ) && echo "-- pushed docs --"
-else
-    echo "-- will only push docs from master branch \"coverage_and_docs\" build --"
-fi