Skip to content

Commit feffdc7

Browse files
authored
Update CI (#176)
* Update CI * fixes * no 32-bit because DecFP * updates
1 parent 5124a5e commit feffdc7

File tree

5 files changed

+136
-63
lines changed

5 files changed

+136
-63
lines changed

.github/workflows/ci.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
tags: ["*"]
6+
pull_request:
7+
jobs:
8+
test:
9+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
version:
15+
- 1.0
16+
- 1 # automatically expands to the latest stable 1.x release of Julia
17+
- nightly
18+
os:
19+
- ubuntu-latest
20+
arch:
21+
- x64
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: getong/[email protected]
25+
with:
26+
host port: 3306 # Optional, default value is 3306. The port of host
27+
container port: 3306 # Optional, default value is 3306. The port of container
28+
character set server: 'utf8mb4' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
29+
collation server: 'utf8mb4_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
30+
mariadb version: 'latest' # Optional, default value is "latest". The version of the MariaDB
31+
mysql database: 'mysqltest' # Optional, default value is "test". The specified database which will be create
32+
mysql root password: '' # Required if "mysql user" is empty, default is empty. The root superuser password
33+
# mysql user: 'developer' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
34+
# mysql password: ${{ secrets.DatabasePassword }} # Required if "mysql user" exists. The password for the "mysql user"
35+
- uses: julia-actions/setup-julia@v1
36+
with:
37+
version: ${{ matrix.version }}
38+
arch: ${{ matrix.arch }}
39+
- uses: actions/cache@v1
40+
env:
41+
cache-name: cache-artifacts
42+
with:
43+
path: ~/.julia/artifacts
44+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
45+
restore-keys: |
46+
${{ runner.os }}-test-${{ env.cache-name }}-
47+
${{ runner.os }}-test-
48+
${{ runner.os }}-
49+
- uses: julia-actions/julia-buildpkg@v1
50+
- uses: julia-actions/julia-runtest@v1
51+
- uses: julia-actions/julia-processcoverage@v1
52+
- uses: codecov/codecov-action@v1
53+
with:
54+
file: lcov.info
55+
docs:
56+
name: Documentation
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v2
60+
- uses: julia-actions/setup-julia@v1
61+
with:
62+
version: '1'
63+
- run: |
64+
julia --project=docs -e '
65+
using Pkg
66+
Pkg.develop(PackageSpec(path=pwd()))
67+
Pkg.instantiate()'
68+
- run: julia --project=docs docs/make.jl
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

+58-58
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
# Documentation: http://docs.travis-ci.com/user/languages/julia/
2-
language: julia
1+
# # Documentation: http://docs.travis-ci.com/user/languages/julia/
2+
# language: julia
33

4-
services:
5-
- mysql
4+
# services:
5+
# - mysql
66

7-
os:
8-
- linux
9-
- osx
10-
- windows
7+
# os:
8+
# - linux
9+
# - osx
10+
# - windows
1111

12-
arch:
13-
- x64
14-
- x86
12+
# arch:
13+
# - x64
14+
# - x86
1515

16-
julia:
17-
- 1.0
18-
- 1
19-
- nightly
16+
# julia:
17+
# - 1.0
18+
# - 1
19+
# - nightly
2020

21-
env:
22-
- JULIA_PROJECT="@."
21+
# env:
22+
# - JULIA_PROJECT="@."
2323

24-
branches:
25-
only:
26-
- master
27-
- gh-pages # For building documentation
28-
- /^testing-.*$/ # testing branches
29-
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags
24+
# branches:
25+
# only:
26+
# - master
27+
# - gh-pages # For building documentation
28+
# - /^testing-.*$/ # testing branches
29+
# - /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags
3030

31-
cache:
32-
directories:
33-
- $HOME/.julia/artifacts
31+
# cache:
32+
# directories:
33+
# - $HOME/.julia/artifacts
3434

35-
matrix:
36-
exclude:
37-
- os: osx
38-
arch: x86
39-
- os: linux
40-
arch: x86
41-
allow_failures:
42-
- julia: nightly
43-
include:
44-
- stage: "Documentation"
45-
julia: 1
46-
os: linux
47-
script:
48-
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.build("MySQL")'
49-
- julia --project=docs/ docs/make.jl
50-
after_success: skip
35+
# matrix:
36+
# exclude:
37+
# - os: osx
38+
# arch: x86
39+
# - os: linux
40+
# arch: x86
41+
# allow_failures:
42+
# - julia: nightly
43+
# include:
44+
# - stage: "Documentation"
45+
# julia: 1
46+
# os: linux
47+
# script:
48+
# - julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.build("MySQL")'
49+
# - julia --project=docs/ docs/make.jl
50+
# after_success: skip
5151

52-
before_install:
53-
- |-
54-
case $TRAVIS_OS_NAME in windows)
55-
choco install mysql
56-
dir C:\\tools\\mysql
57-
dir C:\\tools\\mysql\\current
58-
dir C:\\tools\\mysql\\current\\bin
59-
C:\\tools\\mysql\\current\\bin\\mysqld --install
60-
;;
61-
esac
52+
# before_install:
53+
# - |-
54+
# case $TRAVIS_OS_NAME in windows)
55+
# choco install mysql
56+
# dir C:\\tools\\mysql
57+
# dir C:\\tools\\mysql\\current
58+
# dir C:\\tools\\mysql\\current\\bin
59+
# C:\\tools\\mysql\\current\\bin\\mysqld --install
60+
# ;;
61+
# esac
6262

63-
before_script:
64-
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install mysql; brew services start mysql; fi
63+
# before_script:
64+
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install mysql; brew services start mysql; fi
6565

66-
notifications:
67-
email: false
66+
# notifications:
67+
# email: false
6868

69-
after_success:
70-
- julia -e 'ENV["TRAVIS_JULIA_VERSION"] == "1.3" && ENV["TRAVIS_OS_NAME"] != "linux" && exit(); using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
69+
# after_success:
70+
# - julia -e 'ENV["TRAVIS_JULIA_VERSION"] == "1.3" && ENV["TRAVIS_OS_NAME"] != "linux" && exit(); using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11

22
# MySQL
33

4-
[![Build Status](https://travis-ci.org/JuliaDatabases/MySQL.jl.svg?branch=master)](https://travis-ci.org/JuliaDatabases/MySQL.jl)
4+
[![docs](https://img.shields.io/badge/docs-latest-blue&logo=julia)](https://mysql.juliadatabases.org/dev/)
5+
[![CI](https://github.com/JuliaDatabases/MySQL.jl/workflows/CI/badge.svg)](https://github.com/JuliaDatabases/MySQL.jl/actions?query=workflow%3ACI)
56
[![codecov](https://codecov.io/gh/JuliaDatabases/MySQL.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaDatabases/MySQL.jl)
67

8+
[![deps](https://juliahub.com/docs/MySQL/deps.svg)](https://juliahub.com/ui/Packages/MySQL/xeTdU?t=2)
9+
[![version](https://juliahub.com/docs/MySQL/version.svg)](https://juliahub.com/ui/Packages/MySQL/xeTdU)
10+
[![pkgeval](https://juliahub.com/docs/MySQL/pkgeval.svg)](https://juliahub.com/ui/Packages/MySQL/xeTdU)
11+
712
Package for interfacing with MySQL databases from Julia via the MariaDB C connector library, version 3.1.6.
813

914
### Documentation

REQUIRE

-4
This file was deleted.

docs/make.jl

+1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ makedocs(;
1414

1515
deploydocs(;
1616
repo="github.com/JuliaDatabases/MySQL.jl",
17+
devbranch = "main"
1718
)

0 commit comments

Comments
 (0)