In the travis ci it is showing there are no builds for this repository but I’m able to see the commits,push and pull requests in my github. In travis ci in more options I’m able to see builds within requests. Moreover the status is shown as Build unkown
https://travis-ci.com/github/ThumuSreeRukmini/WeatherApp
https://github.com/ThumuSreeRukmini/WeatherApp
@BanzaiMan can you please help me with this
Hey @ThumuSreeRukmini,
A couple of things here, have you synced your profile? I don’t see the WeatherApp
repository on your GitHub profile, would there be any chance I can see your .travis.yml
? These pieces would be a great start for me to start diagnosing your problem and getting you on your way to building!
@Montana I have made weather app as private repository in github. let me share my .travis.yml here
dist: trusty
sudo: false
language: node_js
node_js:
- '11'
branches:
only:
- master
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- ./node_modules
before_script:
- npm install -g @angular/cli
- npm install -g firebase-tools
install:
- npm install
script:
- npm run test -- --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox
- ng build --prod
after_success:
- firebase deploy --token $1//*TOKEN
I’m able to see the following requests in more options
Let me format this .travis.yml
, but I’m going to remove the tokens
you displayed here on the forums, as these are environment variables that you may want to keep to yourself.
@Montana sorry for that please go ahead and remove the token. Also I made WeatherApp repo as public now. Please check
https://github.com/ThumuSreeRukmini/WeatherApp
I cleaned up your .travis.yml
, as your original one was a bit messy, and I could see how it would cause issues, I’ve made one up for you that’s a bit more clear:
dist: trusty
language: node_js
node_js:
- "11"
addons:
chrome: stable
cache:
directories:
- ./node_modules
install:
- npm install
before_script:
- npm install firebase-tools
- npm install @angular/cli
script:
- npm build
- npm run test -- --no-watch --no-progress --browsers=ChromeHeadless
after_success:
- firebase deploy --token "$FIREBASE_TOKEN"
@Montana Even after modifying the .travis.yml still I’m not able to see the builds in travis ci.
@Montana
I’m able too see the commits I have done in Requests from more options
You need to sync
and try again. What I can do is clone your repository if you don’t mind and try and get a working version, I don’t see Travis even being called, because in GitHub, even when I run git diff
and git log
I don’t see Travis actually talking to GitHub.
You may also want to confirm your email, as the alert says above.
@Montana Please clone my repo
and try
I also just checked, there’s been no builds actually initiated, can you please confirm your email?
I’m able too see the commits I have done in Requests from more options
Don’t confirm it to me, check your email inbox you should have received something from Travis, and a link.
@Montana Now I’m able to see the build history thank you
Glad I could solve your issue @ThumuSreeRukmini.
Montana Mendy
Travis CI Staff
1 Like