# Issue getting my project to build

**URL:** <https://travis-ci.community/t/issue-getting-my-project-to-build/11558>\
**Category:** Node.js\
**Tags:** travis-build\
**Created:** [May 5, 2021, 2:06am UTC](https://travis-ci.community/t/issue-getting-my-project-to-build/11558 "2021-05-05T02:06:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danikban](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/danikban/32/6549_2.png) [@danikban](https://travis-ci.community/u/danikban)\
**Post date:** [May 5, 2021, 2:06am UTC](https://travis-ci.community/t/issue-getting-my-project-to-build/11558/1 "2021-05-05T02:06:34Z")

</div>

I am not sure if there is a syntax issue with my yml file, or if I am not following the instructions to get a build to trigger. I’ve tried committing a change to a file in a branch after the yml file has been pushed to master, but no luck. I am very new to this, hoping I’m missing something simple.

> <https://github.com/danikban/project-setup-pinheiro-encompassing/blob/master/.travis.yml>

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 5, 2021, 2:37am UTC](https://travis-ci.community/t/issue-getting-my-project-to-build/11558/2 "2021-05-05T02:37:03Z")

</div>

Hey @danikban,

Your `.travis.yml` file should read more like this:

```auto
---
language: node_js
node_js:
  - node
  - lts/*
cache:
  directories:
    - ~/.npm
    - .jest
before_script:
  - npm install -g npm@latest
script:
  - npm ci
  - npx jest --ci
jobs:
  include:
    - stage: deploy
      node_js: lts/*
      script:
        - npm ci
        - npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
        - npx expo publish --non-interactive

```

That being said, the `.yml` file you provided is valid `.yml`.

Happy building!  
Montana Mendy

---

<div class="post-metadata">

**Author:** ![danikban](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/danikban/32/6549_2.png) [@danikban](https://travis-ci.community/u/danikban)\
**Post date:** [May 5, 2021, 2:39am UTC](https://travis-ci.community/t/issue-getting-my-project-to-build/11558/3 "2021-05-05T02:39:32Z")

</div>

@Montana I’ll look into your suggestions, but for now I’m just trying to get it to build. If my .yml file is valid, what would prevent travis CI from recognizing I’ve created a new pull request and trigger a build? It’s not even recognizing in my dashboard that I’m creating pull requests.

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 5, 2021, 2:44am UTC](https://travis-ci.community/t/issue-getting-my-project-to-build/11558/4 "2021-05-05T02:44:30Z")

</div>

Hey @danikban,

So it’s valid in the sense it’s formatted correctly, I ran your `.travis.yml` file locally (with your files), and got this popped back while running it verbosely:

```auto
[warn] on notifications: unexpected sequence, using the first value ({:slack=>"nyu-agile-software:4Ll9V7RPK8fkqf2dGDvWiEGt"})

```

```auto
[info] on root: missing os, using the default "linux"

```

```auto
[info] on root: missing dist, using the default "xenial"

```

I hope this helps, you can do this in a easier way via a GUI:

[https://config.travis-ci.com/explore](https://config.travis-ci.com/explore)

You might also want to check your `env var's`.

Happy building!  
Montana Mendy

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [May 5, 2021, 2:49am UTC](https://travis-ci.community/t/issue-getting-my-project-to-build/11558/5 "2021-05-05T02:49:36Z")

</div>

Hey @danikban,

Here’s some official documentation from Expo.

> **[Setting up Continuous Integration - Expo Documentation](https://docs.expo.io/guides/setting-up-continuous-integration/)**
>
> Expo is an open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React.
