.travis.yml 1.71 KB
Newer Older
Anton's avatar
Anton committed
1 2 3 4 5
sudo: false

language: node_js
node_js: "10.16.0"

Anton's avatar
Anton committed
6 7 8
git:
  submodules: false

Anton's avatar
Anton committed
9
install:
Anton's avatar
Anton committed
10 11
  - git clone https://gitlab.rlp.net/motionbank/mbjs/quasar-components-mosys.git src/components/mosys
  - git clone https://gitlab.rlp.net/motionbank/mbjs/quasar-components-shared.git src/components/shared
Anton's avatar
Anton committed
12
  - npm install
Anton's avatar
Anton committed
13
  - ln -s /usr/local/opt/openssl/include/openssl /usr/local/include/ || echo noop
Anton's avatar
Anton committed
14
  - npm run rebuild
Anton's avatar
Anton committed
15

Anton's avatar
Anton committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29
cache:
  directories:
    - node_modules
    - $HOME/.cache/electron
    - $HOME/.cache/electron-builder
    - $HOME/.npm/_prebuilds

env:
  global:
    - ELECTRON_CACHE=$HOME/.cache/electron
    - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder

jobs:
  include:
Anton's avatar
Anton committed
30
    - stage: Build macOS
Anton's avatar
Anton committed
31
      os: osx
Anton's avatar
Anton committed
32
      osx_image: xcode10.2
Anton's avatar
Anton committed
33 34 35 36 37 38
      before_install:
        - echo $APPLE_DEVELOPER_CERTIFICATE | base64 --decode > certificate.p12
        - security create-keychain -p mysecretpassword build.keychain
        - security default-keychain -s build.keychain
        - security unlock-keychain -p mysecretpassword build.keychain
        - security import certificate.p12 -k build.keychain -P $APPLE_DEVELOPER_PASSWORD -T /usr/bin/codesign
39
        - "security set-key-partition-list -S apple-tool:,apple: -s -k mysecretpassword build.keychain"
Anton's avatar
Anton committed
40
        - security find-identity -v
Anton's avatar
Anton committed
41
      script:
42
        - NODE_ENV=production npx quasar build -m electron -t mat
Anton's avatar
Anton committed
43 44
      before_cache:
        - rm -rf $HOME/.cache/electron-builder/wine
Anton's avatar
Anton committed
45
    - stage: Build Linux
Anton's avatar
Anton committed
46
      os: linux
Anton's avatar
Anton committed
47
      dist: xenial
Anton's avatar
Anton committed
48 49
      before_install:
        - sudo apt-get install -y libsecret-1-dev
Anton's avatar
Anton committed
50
      script:
51
        - NODE_ENV=production npx quasar build -m electron -t mat
Anton's avatar
Anton committed
52 53 54
      addons:
        apt:
          update: true
Anton's avatar
Anton committed
55 56 57

addons:
  ssh_known_hosts: gitlab.rlp.net