Skip to content

Commit

Permalink
chore: web3js get rid of Travis (#28695)
Browse files Browse the repository at this point in the history
* ci: remove travis related file

* docs: remove travis badge from README.md

* chore: npm uninstall @commitlint/travis-cli

* ci: add test.sh script

* ci: rebuild web3 pipeline when yml changed
  • Loading branch information
yihau authored Nov 1, 2022
1 parent 5de4dd8 commit 2a417de
Show file tree
Hide file tree
Showing 10 changed files with 114 additions and 1,523 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/web3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
branches: [ master ]
paths:
- "web3.js/**"
- ".github/workflows/web3.yml"
pull_request:
branches: [ master ]
paths:
- "web3.js/**"
- ".github/workflows/web3.yml"

jobs:
# needed for grouping check-web3 strategies into one check for mergify
Expand Down Expand Up @@ -66,6 +68,4 @@ jobs:
cache: 'npm'
cache-dependency-path: web3.js/package-lock.json
- run: |
source .travis/before_install.sh
npm install
source .travis/script.sh
scripts/test.sh
13 changes: 1 addition & 12 deletions web3.js/.github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@ jobs:

- name: Build
run: |
sh -c "$(curl -sSfL https://release.solana.com/edge/install)"
PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
solana --version
npm install
npm run build
ls -l lib
test -r lib/index.iife.js
test -r lib/index.cjs.js
test -r lib/index.esm.js
npm run ok
npm run codecov
npm run test:live-with-test-validator
script.sh
- name: Publish NPM
run: |
Expand Down
58 changes: 0 additions & 58 deletions web3.js/.travis.yml

This file was deleted.

21 changes: 0 additions & 21 deletions web3.js/.travis/before_install.sh

This file was deleted.

14 changes: 0 additions & 14 deletions web3.js/.travis/script.sh

This file was deleted.

3 changes: 0 additions & 3 deletions web3.js/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[![Build status][travis-image]][travis-url]
[![codecov][codecov-image]][codecov-url]
<br>
[![npm][npm-image]][npm-url]
Expand All @@ -7,8 +6,6 @@
[![semantic-release][semantic-release-image]][semantic-release-url]
[![code-style-prettier][code-style-prettier-image]][code-style-prettier-url]

[travis-image]: https://api.travis-ci.org/solana-labs/solana-web3.js.svg?branch=master
[travis-url]: https://travis-ci.org/solana-labs/solana-web3.js
[codecov-image]: https://codecov.io/gh/solana-labs/solana-web3.js/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/solana-labs/solana-web3.js
[npm-image]: https://img.shields.io/npm/v/@solana/web3.js.svg?style=flat
Expand Down
Loading

0 comments on commit 2a417de

Please sign in to comment.