-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #939 from newrelic/55fromsource
CI: Ubuntu 20.04
- Loading branch information
Showing
4 changed files
with
119 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
|
||
jobs: | ||
build-ruby: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
ruby-version: [2.2.10, 2.3.8, 2.4.10, 2.5.9, 2.6.9, 2.7.5, 3.0.3, 3.1.0, jruby-9.2.19.0] | ||
|
@@ -25,7 +25,15 @@ jobs: | |
|
||
unit-tests: | ||
needs: build-ruby | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
ports: | ||
- "3306:3306" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -74,23 +82,26 @@ jobs: | |
} | ||
} | ||
- name: Start mysql | ||
run: sudo systemctl start mysql | ||
|
||
- name: Run Unit Tests | ||
uses: nick-invision/[email protected] | ||
with: | ||
timeout_minutes: 20 | ||
max_attempts: 2 | ||
command: bundle exec rake test:env[${{ env.rails }}] TESTOPTS="--verbose" | ||
env: | ||
DB_PORT: 3306 | ||
MYSQL_PASSWORD: root | ||
DB_PORT: ${{ job.services.mysql.ports[3306] }} | ||
|
||
multiverse: | ||
needs: build-ruby | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
ports: | ||
- 3306 | ||
postgres: | ||
image: postgres:latest | ||
env: | ||
|
@@ -149,8 +160,8 @@ jobs: | |
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
|
||
- name: Start mysql | ||
run: sudo systemctl start mysql | ||
- name: Test MySQL | ||
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'" | ||
|
||
- name: Run Multiverse Tests | ||
uses: nick-invision/[email protected] | ||
|
@@ -159,8 +170,11 @@ jobs: | |
max_attempts: 2 | ||
command: bundle exec rake test:multiverse[group="${{ matrix.multiverse }}",verbose] | ||
env: | ||
DB_PORT: 3306 | ||
DB_PASSWORD: root | ||
MYSQL_PASSWORD: root | ||
DB_PORT: ${{ job.services.mysql.ports[3306] }} | ||
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }} | ||
MYSQL_HOST: 127.0.0.1 | ||
POSTGRES_USERNAME: postgres | ||
POSTGRES_PASSWORD: password | ||
|
||
|
@@ -170,7 +184,7 @@ jobs: | |
|
||
infinite_tracing: | ||
needs: build-ruby | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -198,6 +212,13 @@ jobs: | |
needs: build-ruby | ||
runs-on: ubuntu-18.04 | ||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
ports: | ||
- "3306:3306" | ||
postgres: | ||
image: postgres:latest | ||
ports: | ||
|
@@ -247,19 +268,16 @@ jobs: | |
with: | ||
ruby-version: jruby-9.2.19.0 | ||
|
||
- name: Start mysql | ||
run: sudo systemctl start mysql | ||
|
||
- name: Run Multiverse Tests | ||
uses: nick-invision/[email protected] | ||
with: | ||
timeout_minutes: 60 | ||
max_attempts: 2 | ||
command: bundle exec rake test:multiverse[group=${{ matrix.multiverse }},verbose] | ||
env: | ||
DB_PORT: 3306 | ||
MYSQL_PASSWORD: root | ||
DB_PORT: ${{ job.services.mysql.ports[3306] }} | ||
|
||
- name: Annotate errors | ||
if: ${{ failure() }} | ||
uses: ./.github/actions/annotate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
set -u | ||
|
||
MYSQL55_PATH='/usr/local/mysql55' | ||
|
||
wget https://github.com/mysql/mysql-server/archive/refs/tags/mysql-5.5.63.tar.gz \ | ||
&& tar xzf mysql-5.5.63.tar.gz \ | ||
&& cd mysql-server-mysql-5.5.63/ \ | ||
&& cmake . -DCMAKE_INSTALL_PREFIX=$MYSQL55_PATH \ | ||
-DMYSQL_DATADIR=$MYSQL55_PATH/data \ | ||
-DDOWNLOAD_BOOST=1 \ | ||
-DWITH_BOOST=/tmp/boost \ | ||
-DWITH_SSL=bundled \ | ||
&& make \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf mysql-5.5.63.tar.gz mysql-server-mysql-5.5.63 |