From 7ca16381c375d15b51b87591ed6a05bbcbd89ebe Mon Sep 17 00:00:00 2001 From: Oliver Schwendener Date: Mon, 23 Sep 2019 14:23:07 +0200 Subject: [PATCH] Added travis and appveyor configs back --- .github/workflows/build.yml | 40 ------------------------------------- .travis.yml | 19 ++++++++++++++++++ appveyor.yml | 24 ++++++++++++++++++++++ 3 files changed, 43 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .travis.yml create mode 100644 appveyor.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index e02fb2145..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,40 +0,0 @@ -on: [push] - -jobs: - test: - name: Build & package app using node ${{ matrix.node_version }} on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - node_version: [12] - os: [windows-latest, macOS-latest] - - steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node_version }} - uses: actions/setup-node@v1 - with: - version: ${{ matrix.node_version }} - - - name: Install dependencies - run: | - yarn install - - - name: Validate & lint TypeScript files - run: | - yarn tsc:validate - yarn lint - - - name: Bundle files - run: | - yarn bundle - env: - NODE_ENV: production - - - name: Run tests - run: | - yarn test - - - name: Package & publish app - run: | - yarn package:publish diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..0e2374ffb --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +os: + - osx + +language: node_js +node_js: + "12" + +install: + - yarn install + +before_script: + - export NODE_ENV=production + +script: + - yarn tsc:validate + - yarn lint + - yarn bundle + - yarn test + - yarn package:publish \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..56369adfc --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,24 @@ +image: Visual Studio 2017 + +environment: + nodejs_version: "12" + +platform: + - x64 + +install: + - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) x64 + - node --version + - yarn install + +before_build: + - set NODE_ENV=production + +build_script: + - yarn tsc:validate + - yarn lint + - yarn bundle + - yarn test + - yarn package:publish + +test: off \ No newline at end of file