From fbe5d8fce6b73f44c6e4364e8751f58c8495d7d0 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 20 Oct 2017 17:16:43 +0800 Subject: [PATCH] feat: use circleci instead of travis for building --- .circleci/config.yml | 39 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 28 ---------------------------- appveyor.yml | 2 +- 3 files changed, 40 insertions(+), 29 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..545a826c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,39 @@ +version: 2 +jobs: + build: &build + docker: + - image: circleci/node:latest + working_directory: ~/hare + branches: + only: + - master + - dev + steps: &steps + - checkout + - restore_cache: + keys: + - hare-deps-{{ checksum "yarn.lock" }} + # fallback to using the latest cache if no exact match is found + - hare-deps- + - run: yarn + - save_cache: + paths: + - node_modules + key: hare-deps-{{ checksum "yarn.lock" }} + - run: yarn test +deployment: + staging: + branch: master + heroku: + appname: nuxt-hare +# node-7: +# <<: *build +# docker: +# - image: circleci/node:7.10 +# workflows: +# version: 2 +# build: +# jobs: +# - node-latest +# - node-7 + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5bac4516..00000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -branches: - only: - - dev - - master -language: node_js -node_js: -- '7' -- '8' -os: -- linux -# - osx -cache: - yarn: true - directories: - - node_modules -install: - - yarn -script: -- yarn test -deploy: - provider: heroku - api_key: - secure: URMMueZqWg3NGIDDkOYjhExYVHV5P0sWL1twtJEDHjPgl1ZJq5l9S2KNTI98/bzJVMTuXd1TaMki7Li5JEWjOhijE6rZSShHhcJ80Mn/l/oSoBmSyN6kT6FObpEtkwiaqLO8iqUbrbJY/r5qhhnAKeNcxoMfPmVkJMgndzqstQX/7qmLpELd3mpDrepxt/c8ElMtsZPotPx3+QJ0IH3bbU6eT1wZV3XyOMNHSp1edB9BZVW9qplP6+h77kPFeZPyy5RlPDzQS8V38Q8VunT9QGACHcfqnPt52pEpMZUJZNCW9iC+EFjcMeIZvgBIJEKLZNreDHqAjZeeWP4b7iemB3KdiqQFfT3hGTYaG4ocnK59oP7P+T6O/KhmFCdu1oLI8rohFBDVYSNjd6iuUCw/nsMDNHOCdHwO5UELglHV5wDeuORtbhmVPYh+7BUpzXvRv0A6+YZVtyAjPjnEOCmbpjy8zGLXpw+0YHo8nApi11ggbFTMXeCswBxGBltU/zgOyqCAn1nG5MQlYHnIJRzqjpvyBJ0mP8YhFktnsAgsgK6Gd1eSN3gWy2tMZAtTrGY+M7p9e8JI9ickJX/3beqRvy+ZuXGQx+ETuSGC+cpeYNP/klV22bh4CIfkG2zMyCEk1Df2eotmPriAQ/uyiS8RoN/KQC5zE+ai60ykBgSFYuQ= - app: nuxt-hare - on: - branch: dev - node: 8 - condition: "$TRAVIS_OS_NAME == linux" diff --git a/appveyor.yml b/appveyor.yml index ec895628..06d226b4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,7 +7,7 @@ branches: # blacklist except: - gh-pages - +skip_branch_with_pr: true max_jobs: 4 # Test against the latest version of this Node.js version