summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-08-11 12:30:44 +0900
committerGitHub <noreply@github.com>2019-08-11 12:30:44 +0900
commit0fcde9f23c4506e3ba0ae328fdf86acb8af88ff9 (patch)
treed64439b19caa5277a5e855cb717428030946d007
parent82356236453f6923050d0fb71a5839738e539162 (diff)
parentb7cb7f8c5c484bbec06b71504473976d4ce521b1 (diff)
downloadpsych-0fcde9f23c4506e3ba0ae328fdf86acb8af88ff9.tar.gz
Merge pull request #418 from ruby/actions
Try to use GitHub Actions
-rw-r--r--.github/workflows/macos.yml15
-rw-r--r--.github/workflows/ubuntu-rvm.yml31
-rw-r--r--.github/workflows/ubuntu.yml24
-rw-r--r--.travis.yml12
-rw-r--r--azure-pipelines.yml11
5 files changed, 74 insertions, 19 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644
index 0000000..e161bdd
--- /dev/null
+++ b/.github/workflows/macos.yml
@@ -0,0 +1,15 @@
+name: macos
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@master
+ - name: Install dependencies
+ run: |
+ gem install bundler --no-document
+ bundle install
+ - name: Run test
+ run: rake
diff --git a/.github/workflows/ubuntu-rvm.yml b/.github/workflows/ubuntu-rvm.yml
new file mode 100644
index 0000000..332300f
--- /dev/null
+++ b/.github/workflows/ubuntu-rvm.yml
@@ -0,0 +1,31 @@
+name: ubuntu-rvm
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby: [ 'ruby-head' ]
+ steps:
+ - name: Install libraries
+ run: sudo apt install haveged
+ - uses: actions/checkout@master
+ - name: Set up RVM
+ run: |
+ curl -sSL https://get.rvm.io | bash
+ - name: Set up Ruby
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ rvm install ${{ matrix.ruby }} --binary
+ rvm --default use ${{ matrix.ruby }}
+ - name: Install dependencies
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ gem install bundler --no-document
+ bundle install
+ - name: Run test
+ run: |
+ source $HOME/.rvm/scripts/rvm
+ rake
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
new file mode 100644
index 0000000..d9ab255
--- /dev/null
+++ b/.github/workflows/ubuntu.yml
@@ -0,0 +1,24 @@
+name: ubuntu
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby: [ '2.6.x', '2.5.x', '2.4.x' ]
+ steps:
+ - name: Install libraries
+ run: sudo apt install haveged
+ - uses: actions/checkout@master
+ - name: Set up Ruby
+ uses: actions/setup-ruby@v1
+ with:
+ version: ${{ matrix.ruby }}
+ - name: Install dependencies
+ run: |
+ gem install bundler --no-document
+ bundle install
+ - name: Run test
+ run: rake
diff --git a/.travis.yml b/.travis.yml
index 7f1a80c..9775b85 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,15 +1,11 @@
rvm:
- - 2.4.5
- - 2.5.3
- - 2.6.0
- - ruby-head
- - jruby-9.1.17.0
- - jruby-9.2.0.0
+ - jruby-9.2.7.0
+ - jruby-head
matrix:
allow_failures:
- - rvm: jruby-9.1.17.0
- - rvm: jruby-9.2.0.0
+ - rvm: jruby-9.2.7.0
+ - rvm: jruby-head
before_script:
- unset JRUBY_OPTS
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
deleted file mode 100644
index 1d3ec00..0000000
--- a/azure-pipelines.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-jobs:
-- job: macOS
- pool:
- vmImage: 'macos-10.13'
- steps:
- - script: |
- gem install bundler
- bundle install --retry=3 --jobs=4
- displayName: 'bundle install'
- - script: rake
- displayName: 'rake'