focallocal / fl-maps

The Public Happiness Movement: A platform bringing people and communities together to solve any and all societal issues. BTM branch is a project aiming to solve world involuntary homelessness. PHM brings communities together to create social initiatives for kindness and well-being.
https://publichappinessmovement.com
MIT License
143 stars 95 forks source link

New base images and node 14 #1166

Closed TLMcNulty closed 1 year ago

AndyatFocallocal commented 1 year ago

The build is failing, i've attached the errors below from Travis.

It seems to be looking for and failing to find the mup file

Error: Cannot find module './mup-secrets.json'

AndyatFocallocal commented 1 year ago

temp2.txt

AndyatFocallocal commented 1 year ago

Is this the solution? https://publichappinessmovement.com/t/topic/1589/50

AndyatFocallocal commented 1 year ago

Here's a bit more info on the Travis build errors.

notifications.slack.rooms: using a plain string on a key that expects an encrypted string
root: deprecated key sudo (The key `sudo` has no effect anymore.)
root: missing dist, using the default xenial
root: missing os, using the default linux

focallocal/fl-maps:.travis.yml@addc9df

language: node_js
sudo: required
node_js:
  - '14.21.3'

notifications:
  slack: focallocal:njis5lKnuOTF1dp8W7HiTn8I

before_install:
  - curl -L -o sops.deb "https://github.com/mozilla/sops/releases/download/v3.5.0/sops_3.5.0_amd64.deb"
  - sudo dpkg -i sops.deb
  - echo "$sops_gpg_key" | base64 -d | gpg --batch --import
  - cd deployment/$(./deployment/branch-to-dir.sh "$TRAVIS_BRANCH")
  - for file in *.enc*; do sops --decrypt --output "${file%.enc*}${file##*.enc}" "${file}"; done
  - npm install -g mup
  - curl https://install.meteor.com/?release=2.11.0 | /bin/sh

branches:
  only:
    - master
    - fl-sleeper
    - master_withoutDCS
    - deploy-btm
    - deploy-phm

script:
  - npm install
  - mup setup
  - mup deploy

Build Config

{
  "language": "node_js",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "sudo": true,
  "node_js": [
    "14.21.3"
  ],
  "notifications": {
    "slack": [
      {
        "rooms": [
          "focallocal:njis5lKnuOTF1dp8W7HiTn8I"
        ]
      }
    ]
  },
  "before_install": [
    "curl -L -o sops.deb \"https://github.com/mozilla/sops/releases/download/v3.5.0/sops_3.5.0_amd64.deb\"",
    "sudo dpkg -i sops.deb",
    "echo \"$sops_gpg_key\" | base64 -d | gpg --batch --import",
    "cd deployment/$(./deployment/branch-to-dir.sh \"$TRAVIS_BRANCH\")",
    "for file in *.enc*; do sops --decrypt --output \"${file%.enc*}${file##*.enc}\" \"${file}\"; done",
    "npm install -g mup",
    "curl https://install.meteor.com/?release=2.11.0 | /bin/sh"
  ],
  "branches": {
    "only": [
      "master",
      "fl-sleeper",
      "master_withoutDCS",
      "deploy-btm",
      "deploy-phm"
    ]
  },
  "script": [
    "npm install",
    "mup setup",
    "mup deploy"
  ]
}