From 3127818d7a906f5ea39742603fb1ac2799f31066 Mon Sep 17 00:00:00 2001 From: ivmartel Date: Mon, 29 Mar 2021 14:47:25 +0200 Subject: [PATCH] Remove travis, finialise move to github actions. Fixes #249. --- .travis.yml | 32 ---------------------------- README.md | 2 +- resources/scripts/update-gh-pages.sh | 24 --------------------- 3 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 .travis.yml delete mode 100644 resources/scripts/update-gh-pages.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 36d2e481..00000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -# needs Ubuntu Trusty -dist: trusty -# Note: if you switch to sudo: false, you'll need to launch chrome with --no-sandbox. -# See https://github.com/travis-ci/travis-ci/issues/8836 -sudo: required -# have Travis install chrome stable -addons: - chrome: stable - -language: node_js -node_js: -- 'lts/*' -env: - global: - - secure: wXlv2AeObwdJPRr/fnSd8LkFnYNfPkOGzAkYXnoLKfzQr5t35xk7OSHHJAWtK11vy5F+ob4Z52tsIkSrLBrb6zAskH3zJIA/dwk9EeZ2y2OdDSWUyf9tderUbd+SHEOmpUo/wBelKo/PLkpnHlaDUtzHEWpy3Rrfz9A3W2FVeWAM/o/MnljQFYxkc2JTWt9eFOqpB1z3Z5m4OrWA2dgren5aCCyZLZgbqP4TIv/Esod1Z377HbV7D0cdzE4Ptm96RiyDbiITQcyhSoNn9VN5BvrX2Oz+G9Lymz8+vV1cxde0Y3uyrAXq7JhrFqDbjeBeafBf8gaCD5RTBEalLux+iLCeMTmOQEhzxIJpnndv31sH9KbpiFG5h9IwH/8Snt+U0C42o0M3lrMMj/eH/+mmcaM1YwMuGytk4v2SZ+8d9Q5M0uK+knGLm16HCpkwCfmFfCmFteLBVlRkqikWtGYEYcVCROA/i0yVVJny7DFT4jaFjG99weTTDBQ5lgeMiSfbVDjtpy2Lt+HOFcDbOYkwCsaJLpDXCo69GdjeNrHvT9vBGM3Pp6krOrTLwCtu59DtfYutA9+4STKXyuC9aw2z6Mm6HpKJw6bNKyJegtfm9gzbuiVlu/NKZDuseUjf6K2zsq9Jjs84P+X7oAOHlUSrKYz3iwcJG0zjmXB1oBVnp7I= - -# install specific yarn -before_install: -- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.4 -- export PATH="$HOME/.yarn/bin:$PATH" - -# main -script: -- yarn run lint -- yarn run test-ci -- yarn run build-trunk - -after_success: -# update gh-page only for master and not pull requests -- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - chmod +x ./resources/scripts/update-gh-pages.sh; "./resources/scripts/update-gh-pages.sh"; - else echo "Not deploying artifacts for $TRAVIS_BRANCH"; fi diff --git a/README.md b/README.md index a0d3998e..9895b5e1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ All coding/implementation contributions and comments are welcome. Releases shoul dwv-angular is not certified for diagnostic use. Released under GNU GPL-3.0 license (see [license.txt](license.txt)). -[![Build Status](https://travis-ci.org/ivmartel/dwv-angular.svg?branch=master)](https://travis-ci.org/ivmartel/dwv-angular) +[![Node.js CI](https://github.com/ivmartel/dwv-angular/actions/workflows/nodejs-ci.yml/badge.svg)](https://github.com/ivmartel/dwv-angular/actions/workflows/nodejs-ci.yml) ## Steps to run the viewer from scratch diff --git a/resources/scripts/update-gh-pages.sh b/resources/scripts/update-gh-pages.sh deleted file mode 100644 index 844f5fd4..00000000 --- a/resources/scripts/update-gh-pages.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -#Script to push build results on the repository gh-pages branch. - -# we should be in /home/travis/build/ivmartel/dwv-angular -echo -e "Starting to update gh-pages\n" - -# go to home and setup git -cd $HOME -git config --global user.email "travis@travis-ci.org" -git config --global user.name "Travis" -# using token, clone gh-pages branch -git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/ivmartel/dwv-angular.git gh-pages -# clean up demo -rm -Rf $HOME/gh-pages/demo/trunk/* -# copy new build in demo/trunk -cp -Rf $HOME/build/ivmartel/dwv-angular/dist/dwv-angular/* $HOME/gh-pages/demo/trunk -# move back to root of repo -cd $HOME/gh-pages -# add, commit and push files -git add -Af . -git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to gh-pages" -git push -fq origin gh-pages - -echo -e "Done updating.\n"