diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2019-07-03 16:36:27 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2019-07-08 00:21:27 +0100 |
commit | 46ec5eda8de3580592692a4bd7fb3b54e66fc0f2 (patch) | |
tree | 97738f57dda53a3ec73089d23aaf6691d2c3f80f | |
parent | 284151a61c5f1b292d7d1fd424f899c0695ea157 (diff) |
use drone to build
-rw-r--r-- | .drone.yml | 24 | ||||
-rw-r--r-- | .travis.yml | 32 |
2 files changed, 24 insertions, 32 deletions
diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fc79de0 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +--- +kind: pipeline +name: build + +steps: +- name: run tests + image: golang + commands: + - sleep 5 + - make dep + - make test + environment: + MYSQL_TEST: true + MYSQL_TEST_HOST: mysql-server + MYSQL_TEST_USER: root + +services: +- name: mysql-server + image: mysql + environment: + MYSQL_ALLOW_EMPTY_PASSWORD: yes + MYSQL_DATABASE: certs + ports: + - 3306 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f3251d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -language: go -services: - - mysql - -env: - - SUITE=lint - - SUITE=test - -go: - - 1.12.x - - 1.11.x - - 1.10.x - - tip - -matrix: - allow_failures: - - go: tip - fast_finish: true - -before_install: - - make dep - - mysql -e 'CREATE DATABASE certs;' - -install: - - go version - -sudo: false -script: - - MYSQL_TEST="true" make $SUITE - -after_success: - - bash <(curl -s https://codecov.io/bash) |